Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

compilation/classpath problem

Thread view: 
anshul - 29 Jan 2007 23:18 GMT
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 - 29 Jan 2007 23:57 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.