g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013 
<== Date ==> <== Thread ==>

Subject: Re: the first installing jca2.1.2 problem
From: Thomas Pelaia II <pelaiata@sns.gov>
To: zhaozhuo <zhaozhuo@mail.ihep.ac.cn>
Cc: tech-talk <tech-talk@aps.anl.gov>
Date: Fri, 08 Jun 2007 08:05:43 -0400
Hi,

That's an old version of JCA.  Before trying to figure out how to work with it, I suggest starting with the latest version of JCA from Cosylab:

-tom


On Jun 8, 2007, at 3:47 AM, zhaozhuo wrote:

I installed jdk1.5.0 and base3.14.7 and jca binary from jca2.1.2-linux-x86.tgz, added CLASSPATH and LD_LIBRARY_PATH.
Now I excersised the example1.java in the tutorial, But when I excute "javac example1.java", and got these:
 
example1.java:12:cannot find symbol
symbol       : class JCALibrary
location:class example1
 
    JCALibrary jca= JCALibrary.getInstance();
 
Who can help me?
 
I copied the script "example1.java" and configured the file ".JCALibrary.properties" like the following:
 
// File: example1.java
 
public class example1 {
  public static void main(String[] args) {
    if(args.length!=1) {
      System.out.println("usage: java example1 <pvname>");
      return;
    }
   
    try {
      // Get the JCALibrary instance.
      JCALibrary jca= JCALibrary.getInstance();
 
    // Create a single threaded context with default configuration values.
    Context ctxt= jca.createContext(JCALibrary.JNI_SINGLE_THREADED);
 
    // Display basic information about the context.
    ctxt.printInfo();
 
    // send the request and wait 5.0 seconds for the channel to connect to the PV.
    ctxt.pendIO(5.0);
 
    // If we're here, then everything went fine.
    // Display basic information about the channel.
    ch.printInfo();
 
    // Disconnect the channel.
    ch.destroy();
 
    // Destroy the context.
    ctxt.destroy();
 
  } catch(Exception ex) {
    System.err.println(ex);
  }
 }
}
 
//File JCALibrary.properties
#define the location of the epics shared libraries and caRepeater executable
#gov.aps.jca.jni.epics.win32-x86.library.path= c:/epics/baseR3.14.4/bin/win32-x86
#gov.aps.jca.jni.epics.win32-x86.caRepeater.path= c:/epics/baseR3.14.4/bin/win32-x86
 
gov.aps.jca.jni.epics.linux-x86.library.path= /home/epicsadm/epics3.14.7/base-3.14.7/lib/linux-x86
gov.aps.jca.jni.epics.linux-x86.caRepeater.path= /home/epicsadm/epics3.14.7/base-3.14.7/bin/linux-x86
 
# define default values for both JNI_THREAD_SAFE and JNI_SINGLE_THREADED contexts.
gov.aps.jca.jni.JNIContext.preemptive_callback= true
gov.aps.jca.jni.JNIContext.addr_list="192.168.44.244"
gov.aps.jca.jni.JNIContext.auto_addr_list= true
gov.aps.jca.jni.JNIContext.connection_timeout= 30.0
gov.aps.jca.jni.JNIContext.beacon_period= 15.0
gov.aps.jca.jni.JNIContext.repeater_port= 5065
gov.aps.jca.jni.JNIContext.server_port= 5064
gov.aps.jca.jni.JNIContext.max_array_bytes= 16384
 
# define default values only for JNI_SINGLE_THREADED context
gov.aps.jca.jni.SingleThreadedContext.event_dispatcher= gov.aps.jca.event.DirectEventDispatcher
 
# define default values only for JNI_THREAD_SAFE context
gov.aps.jca.jni.ThreadSafeContext.event_dispatcher= gov.aps.jca.event.QueuedEventDispatcher
gov.aps.jca.jni.ThreadSafeContext.priority= 5
 
# define default values for QueuedEventDispatcher components
gov.aps.jca.event.QueuedEventDispatcher= 5
 
 
 
 



Replies:
RE: the first installing jca2.1.2 problem Pearson, MR (Matthew)
References:
the first installing jca2.1.2 problem zhaozhuo

Navigate by Date:
Prev: the problem in the first installing jca2. 1.2 reouhzoahz
Next: Re: Automatically generate iocsh registrar code? Carl Lionberger
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013 
Navigate by Thread:
Prev: the first installing jca2.1.2 problem zhaozhuo
Next: RE: the first installing jca2.1.2 problem Pearson, MR (Matthew)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·