Experimental Physics and
| |||||||||||||||
|
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é begin:vcard fn;quoted-printable:Eric L=C3=A9corch=C3=A9 n;quoted-printable:L=C3=A9corch=C3=A9;Eric org:Ganil;Groupe Informatique Machine adr:;;BP 55027;Caen;;14076;France email;internet:[email protected] title:DBA / resp. GMAO / CC Ganil tel;work:02 31 45 47 35 tel;fax:02 31 45 47 28 url:http://www.ganil.fr version:2.1 end:vcard
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |