incubator-river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Firmstone <j...@zeus.net.au>
Subject Compile / comfig error?
Date Sat, 18 Oct 2008 06:22:05 GMT
Hi,

A class version compile time error is occurring on my System:

[loading /usr/j2se/jre/lib/rt.jar(java/security/AllPermission.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/security/Security.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/security/SecurityPermission.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/rmi/Naming.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/rmi/RMISecurityManager.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/io/Reader.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/io/FileFilter.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/io/StreamTokenizer.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/io/StringReader.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/io/StringWriter.class)]
[loading /usr/j2se/jre/lib/rt.jar(java/lang/RuntimePermission.class)]
[loading /usr/java/lib/tools.jar(sun/tools/java/BinaryClass.class)]
/opt/src/river/trunk/src/com/sun/jini/tool/ClassDep.java:20: cannot 
access sun.tools.java.BinaryClass
bad class file: /usr/java/lib/tools.jar(sun/tools/java/BinaryClass.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
import sun.tools.java.BinaryClass;
[total 14586ms]
1 error

Looking at my output, javac attempts to be loading the tools library 
from my install of jdk1.6.0 rather than j2sdk1.4.2_13?

I'm building in Netbeans, which is running under 1.6.0 but building 
under 1.4.2_13, my $JAVA_HOME=/usr/jdk/j2sdk1.4.2_13

looking in build_common.xml, perhaps this variable is getting set 
somewhere else, any ideas?

 <condition property="jdk-tools-jar" value="${env.JAVA_HOME}/lib/tools.jar">
            <not> <os family="mac"/> </not>
        </condition>

Regards,

Peter.

Mime
View raw message