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: RE: the first installing jca2.1.2 problem
From: "Pearson, MR \(Matthew\)" <[email protected]>
To: "Thomas Pelaia II" <[email protected]>, "zhaozhuo" <[email protected]>
Cc: tech-talk <[email protected]>
Date: Mon, 11 Jun 2007 08:29:42 +0100
Hi,
 
Maybe you're missing the import statement at the top of the file?
Looking at the JavaDoc for JCA it looks like you need this:
 
import gov.aps.jca.JCALibrary;
 
It's much easier sometimes to use something like the Eclipse IDE, which would highlight compile errors like this, and even offer to correct them for you.
 
Cheers,
Matthew


From: [email protected] [mailto:[email protected]] On Behalf Of Thomas Pelaia II
Sent: 08 June 2007 13:06
To: zhaozhuo
Cc: tech-talk
Subject: Re: the first installing jca2.1.2 problem

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
 
 
 
 


This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

References:
the first installing jca2.1.2 problem zhaozhuo
Re: the first installing jca2.1.2 problem Thomas Pelaia II

Navigate by Date:
Prev: GigE Vision-compliant cameras Malitsky, Nikolay D
Next: RE: GigE Vision-compliant cameras Pearson, MR (Matthew)
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: the first installing jca2.1.2 problem Thomas Pelaia II
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 
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 ·