1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== 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 |
I hope this helps. Regards, Claude
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é