compilation/classpath problem

Discussion in 'Java' started by anshul, Jan 29, 2007.

  1. anshul

    anshul Guest

    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
     
    anshul, Jan 29, 2007
    #1
    1. Advertising

  2. anshul

    Lew Guest

    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
     
    Lew, Jan 29, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    3
    Views:
    7,409
    Tony Morris
    Feb 9, 2004
  2. Gabe
    Replies:
    3
    Views:
    1,118
  3. Replies:
    2
    Views:
    810
  4. C__chp
    Replies:
    4
    Views:
    542
    Puppet_Sock
    Feb 15, 2008
  5. Replies:
    2
    Views:
    1,158
    Mike Schilling
    Mar 2, 2008
Loading...

Share This Page