Summary: | Wrong BOOTCLASSPATH variable on package dev-java/sun-jdk-1.5.0.13 and sun-jre-bin | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Geaaru <geaaru> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.pastebin.org/15639 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Geaaru
2008-01-16 10:49:58 UTC
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 |