There is a wrong CLASSPATH variable on /usr/share/java-config-2/vm/sun-jdk-1.5 because jar files i18n and sunrsasign.jar there aren't. Reproducible: Always This fix problem: --- sun-jdk-1.5 2007-10-30 11:04:19.000000000 +0100 +++ sun-jdk-1.5.new 2008-01-16 11:41:15.000000000 +0100 @@ -12,7 +12,7 @@ MANPATH="/opt/sun-jdk-1.5.0.13/man" PROVIDES_TYPE="JDK JRE" PROVIDES_VERSION="1.5" -BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar" +BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar" GENERATION="2" ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" VMHANDLE="sun-jdk-1.5"
Hm well it's what the jdk reports itself (System.getProperty("sun.booth.class.path")) seems also we miss jre/classes $ GENTOO_VM=sun-jdk-1.5 java pathtest CLASSPATH: . BOOTCLASSPATH: /opt/sun-jdk-1.5.0.13/jre/lib/rt.jar:/opt/sun-jdk-1.5.0.13/jre/lib/i18n.jar:/opt/sun-jdk-1.5.0.13/jre/lib/sunrsasign.jar:/opt/sun-jdk-1.5.0.13/jre/lib/jsse.jar:/opt/sun-jdk-1.5.0.13/jre/lib/jce.jar:/opt/sun-jdk-1.5.0.13/jre/lib/charsets.jar:/opt/sun-jdk-1.5.0.13/jre/classes LIBRARY_PATH: /opt/sun-jdk-1.5.0.13/jre/lib/i386/client:/opt/sun-jdk-1.5.0.13/jre/lib/i386:/opt/sun-jdk-1.5.0.13/jre/../lib/i386 what gives the warnings mentioned in the pastebin?
Sorry, for receive this warning you must add -Xlint flag to javac and so every normal compilation seems print these warning. javac -Xlint -d /home/geaaru/java/classes -cp /home/geaaru/java:`java-config -p log4j `:`java-config -r` src/Session.java warning: [path] bad path element "/opt/sun-jdk-1.5.0.13/jre/lib/i18n.jar": no such file or directory warning: [path] bad path element "/opt/sun-jdk-1.5.0.13/jre/lib/sunrsasign.jar": no such file or directory 2 warnings
Hm I guess we could remove those jar from BOOTCLASSPATH if they don't exist, although the system property lists them... BTW you shouldn't need to include output of java-config -r in classpath, because bootclasspath is there automatically, it includes stuff like java.lang etc. I guess our description of -r option is imprecise: -r, --runtime Print the runtime classpath
Yes, i think that could be removed from BOOTCLASSPATH variable, probably is refered to an old sun-jdk. Bye Ge@@ru
OK fixed in 1.5.0.14. People that remerge 1.5.0.13 will also get it fixed, but I don't think this deserved a revbump.
Thank you very much. Bye Ge@@ru