Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   compilation/classpath problem (http://www.velocityreviews.com/forums/t390449-compilation-classpath-problem.html)

anshul 01-29-2007 11:18 PM

compilation/classpath problem
 
Hi ,
My .bashrc file looks like this:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export JAVA_HOME="/usr/java/jdk1.5.0_07"
export JAVA_BIN="/usr/java/jdk1.5.0_07/bin/"
export PATH=$JAVA_BIN:$JAVA_HOME/bin:.:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
~

I am getting the following error messages when compiling using
jdk1.5.0_07 :

[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java:0: error: malformed .zip archive in
CLASSPATH: /usr/java/jdk1.5.0_07/lib/tools.jar/
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java: In class
`com.emc.gvs.basetypes.ValidateIOF':
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java: In method `finit$()':
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java:63: error: Incompatible type for
declaration. Can't convert `boolean' to `java.lang.Boolean'.
[javac] Boolean bool = false; //java
[javac] ^
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java: In method
`com.emc.gvs.basetypes.ValidateIOF.getJDOMValue( java.lang.String)':
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java:625: error: Incompatible type for
declaration. Can't convert `boolean' to `java.lang.Boolean'.
[javac] Boolean bacxFTPF11splchars =
macxFTPF11splchars.find();
[javac] ^
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java:629: error: Incompatible type for
declaration. Can't convert `boolean' to `java.lang.Boolean'.
[javac] Boolean bacxFTPF11dquotes =
macxFTPF11dquotes.find();
[javac] ^
[javac] /home/asaxen/iof-validation-module/trunk/src/com/emc/gvs/
basetypes/ValidateIOF.java:636: error: Incompatible type for
declaration. Can't convert `boolean' to `java.lang.Boolean'.
[javac] Boolean bacxFTPF11Pipe =
macxFTPF11Pipe.find();

I could compile and run the same code on a different machine using
jdk1.5.0_10.
Can you throw some light on what should I do ?


Regards


Lew 01-29-2007 11:57 PM

Re: compilation/classpath problem
 
anshul wrote:
> export JAVA_HOME="/usr/java/jdk1.5.0_07"
> export JAVA_BIN="/usr/java/jdk1.5.0_07/bin/"
> export PATH=$JAVA_BIN:$JAVA_HOME/bin:.:$PATH
> export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar


You have the java bin directory in your PATH twice, not that that influences
your problem.

Having the Java JARs in your CLASSPATH is unnecessary.

- Lew


All times are GMT. The time now is 10:10 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.