EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: ant problem when building Irmis
From: Claude Saunders <[email protected]>
To: Lecorche Eric <[email protected]>, [email protected]
Date: Fri, 03 Nov 2006 10:31:06 -0600
Hi Eric,

I'm not sure what the problem is, but it seems to have something to do with the java JDK version you have, or perhaps the CLASSPATH you have.

Both javax.crypto and javax.xml.parsers are built into the core JDK 1.4.2 (but were not in older versions of java). The javax.xml.parsers are in rt.jar and the javax.crypto is in jce.jar, both of which are distributed with the JDK I get from java.sun.com (for Linux). I wonder if you have a JDK from somewhere else, or one which is missing these for some reason. I know there was a time when javax.xml.parsers was not distributed, and I suppose a European version of java might choose to omit javax.crypto due to export restrictions. But I know many others in Europe who have built IRMIS without a problem.

I don't use the environment variable CLASSPATH at all. I tested it, and apparently ant <javac> uses both the CLASSPATH and the paths specified by <classpath> element. I don't know what the precedence is, though. Perhaps if you have explicitly specified a particular rt.jar in CLASSPATH, this might cause a problem.

Although you should not have to, as a last resort you can download xml-apis.jar and jce.jar as separate java extensions I believe. I have a copy of xml-apis.jar in irmisBase/db/lib/java. jce.jar is available from java.sun.com as JCE package.

In general, IRMIS builds and runs fine with 1.5.x. The only problem with 1.5.x is that there is some slightly different Swing behavior that seems to cause minor problems with the GUI. But nothing significant.

I hope this helps.
   Regards, Claude



Lecorche Eric wrote:
Although being an Epics beginner, I would like to perform an evaluation of the Irmis package.

When I run "ant deploy" on the db directory, I get the following errors during the Java compilation :

compile:
[javac] Compiling 87 source files to /home/epics1/Irmis/irmisBase/db/build/classes
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:18: error: ne peut repérer
le package par défaut « javax.crypto ». Vérifier la variable d'environnement CLASSPATH et l'accès aux archives.
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:12: error: Class or interfa
ce `javax.xml.parsers.ParserConfigurationException' not found in import.
[javac] import javax.xml.parsers.ParserConfigurationException;
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:61: error: Type `SecretKeyS
pec' not found in the declaration of the local variable `skeySpec'.
[javac] SecretKeySpec skeySpec = new SecretKeySpec(key.getBytes(), "Blowfish");
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:62: error: Type `Cipher' no
t found in the declaration of the local variable `cipher'.
[javac] Cipher cipher = Cipher.getInstance("Blowfish");
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:64: error: Type `CipherInpu
tStream' not found in the declaration of the local variable `cis'.
[javac] CipherInputStream cis = new CipherInputStream(fileInputStream, cipher);
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:71: error: Type `DocumentBu
ilderFactory' not found in the declaration of the local variable `docBuilderFactory'.
[javac] DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:72: error: Type `DocumentBu
ilder' not found in the declaration of the local variable `docBuilder'.
[javac] DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:91: error: Type `ParserConf
igurationException' not found in the declaration of the local variable `pce'.
[javac] } catch (ParserConfigurationException pce) {
[javac] ^
[javac] /home/epics1/Irmis/irmisBase/db/src/db/java/gov/anl/aps/irmis/persistence/DAOContext.java:103: error: Type `NoSuchPad
dingException' not found in the declaration of the local variable `nspe'.
[javac] } catch (NoSuchPaddingException nspe) {
[javac] ^
[javac] 9 errors


(The first error message -in french- says that the "javax.crypto" package can't be found and that I have to check the CLASSPATH environment variable).

As it is the first time I am using ant, I suspect I am missing something but I don't see what : I checked that JAVA_HOME, ANT_HOME and PATH are correctly set ; then, I verified that if doing a standard Java compilation (not using ant), it compiles correctly and for example finds the missing "javax.crypto" package. I came along the ant web site but don't see there any way to solve the problem ; finally, I tried to understand the build.xml configuration file without finding any clue.

By the way, when using ant, is the CLASSPATH environment variable used, or is the classpath /only/ built from the configuration build.xml file ?

Thanks in advance for any help

Eric Lécorché


Replies:
Re: ant problem when building Irmis Lecorche Eric
References:
ant problem when building Irmis Lecorche Eric

Navigate by Date:
Prev: Re: HP8116A signal generator Eric Norum
Next: Re: HP8116A signal generator Kate Feng
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: ant problem when building Irmis (cont'd) Lecorche Eric
Next: Re: ant problem when building Irmis Lecorche Eric
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·