Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 206069
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Geaaru <geaaru@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 206069 depends on: Show dependency tree
Bug 206069 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-01-16 10:49 0000
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 From Vlastimil Babka (Caster) 2008-01-16 11:11:34 0000 -------
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 From Geaaru 2008-01-16 11:44:45 0000 -------
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 From Vlastimil Babka (Caster) 2008-01-16 14:22:58 0000 -------
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 From Geaaru 2008-01-16 17:53:18 0000 -------
Yes, i think that could be removed from BOOTCLASSPATH variable, probably is
refered to an old sun-jdk.

Bye

Ge@@ru

------- Comment #5 From Vlastimil Babka (Caster) 2008-01-18 15:05:52 0000 -------
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 From Geaaru 2008-01-18 21:10:23 0000 -------
Thank you very much. 

Bye

Ge@@ru

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug