Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206069 - Wrong BOOTCLASSPATH variable on package dev-java/sun-jdk-1.5.0.13 and sun-jre-bin
Summary: Wrong BOOTCLASSPATH variable on package dev-java/sun-jdk-1.5.0.13 and sun-jre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL: http://www.pastebin.org/15639
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 10:49 UTC by Geaaru
Modified: 2008-01-18 21:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geaaru 2008-01-16 10:49:58 UTC
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"
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-16 11:11:34 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?
Comment 2 Geaaru 2008-01-16 11:44:45 UTC
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
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-16 14:22:58 UTC
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
Comment 4 Geaaru 2008-01-16 17:53:18 UTC
Yes, i think that could be removed from BOOTCLASSPATH variable, probably is refered to an old sun-jdk.

Bye

Ge@@ru
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-01-18 15:05:52 UTC
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.
Comment 6 Geaaru 2008-01-18 21:10:23 UTC
Thank you very much. 

Bye

Ge@@ru