EPICS Controls 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  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: the first installing jca2.1.2 problem
From: "zhaozhuo" <[email protected]>
To: "tech-talk" <[email protected]>
Date: Fri, 8 Jun 2007 15:47:32 +0800
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 Thomas Pelaia II

Navigate by Date:
Prev: Automatically generate iocsh registrar code? Susanna Jacobson
Next: the problem in the first installing jca2. 1.2 reouhzoahz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Automatically generate iocsh registrar code? Andrew Johnson
Next: Re: the first installing jca2.1.2 problem Thomas Pelaia II
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·