[Bug 722252] New: alljava.sh does not work for third-party JVMs
https://bugzilla.novell.com/show_bug.cgi?id=722252 https://bugzilla.novell.com/show_bug.cgi?id=722252#c0 Summary: alljava.sh does not work for third-party JVMs Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: ASSIGNED Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mvyskocil@suse.com ReportedBy: mvyskocil@suse.com QAContact: qa@suse.de Found By: --- Blocker: --- Script alljava.sh assumes the JVM is installed in SUSE expected location /usr/%lib/jvm/ and if not, then JAVA_HOME et all are not installed. This does not work for third-party JVMs, which are obviously installed into /usr/java/latest or /usr/java. Solution is to extend the alljava.sh and alljava.csh to check them and add a check for /usr/lib/jvm on 64bit systems as well, as only SUSE installs the 64bit jvm under lib64. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c1
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c2
--- Comment #2 from Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c3
--- Comment #3 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c4
--- Comment #4 from Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c5
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c6
--- Comment #6 from Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c7
--- Comment #7 from Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c8
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c9
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c10
Michal Vyskocil
Created an attachment (id=455616) --> (http://bugzilla.novell.com/attachment.cgi?id=455616) [details] alljava.csh
Great, thanks a lot!
You may try this ... btw. why do you metion that PATH is affected ... the only variables used are JDIR and JPATH which are IMHO simpy helpers and therefore can be unset at the end.
I did not change the comment, so this is some relict from previous version. I changed that and sent the patch to aaa_base by email. Marking a bug as FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c12
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c13
--- Comment #13 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c14
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c16
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c17
--- Comment #17 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c18
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c19
--- Comment #19 from Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c20
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c21
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c22
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c23
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c24
Daniel Pecka
env | egrep JAVA\|_HOME JRE_HOME=/usr/java/jdk1.7.0_03/jre JAVA_BINDIR=/usr/java/jdk1.7.0_03/bin JAVA_HOME=/usr/java/jdk1.7.0_03 SDK_HOME=/usr/java/jdk1.7.0_03 JDK_HOME=/usr/java/jdk1.7.0_03 JAVA_ROOT=/usr/java/jdk1.7.0_03
env | egrep JAVA\|_HOME JRE_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre JAVA_BINDIR=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/bin JAVA_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0 SDK_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0 JDK_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0 JAVA_ROOT=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0
env | egrep JAVA\|_HOME JRE_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre JAVA_BINDIR=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/bin JAVA_HOME=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre JAVA_ROOT=/usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre
regards, d -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c
Michal Vyskocil
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c25
Michal Vyskocil
Created an attachment (id=478321) --> (http://bugzilla.novell.com/attachment.cgi?id=478321) [details] alljava.sh upped
hello Michal,
problem is, that oracle java se jdk|jre leaves a etc/alternatives untouched .. i have very carefully investigated a rpm post/pre install scripts from oracle packages so if we want to make alljava.sh a aracle java se aware, we just have to hardcode those paths no matter that there could be whatever an admin places there under the name /usr/java ..
Well, my POW is causing inconsistency /usr/bin/java != $JAVA_HOME/bin/java should be harder than just rpm -i random.rpm. IOW why would you need the vendor-java when you need the Oracle one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c26
--- Comment #26 from Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c
Daniel Pecka
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c29
--- Comment #29 from Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c30
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c31
Daniel Pecka
rpm -qa \*jdk\* jdk-1.7.0_51-fcs.x86_64 java-1_7_0-openjdk-1.7.0.6-24.13.5.x86_64 java-1_7_0-openjdk-headless-1.7.0.6-24.13.5.x86_64
set | grep JAVA JAVA_BINDIR=/usr/java/latest/bin JAVA_HOME=/usr/java/latest JAVA_ROOT=/usr/java/latest
and also please change product to 13.1 if you are not talking about 12.2. regards, daniel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c32
--- Comment #32 from Daniel Pecka
set | egrep JDK\|JRE\|JAVA JAVA_BINDIR=/usr/java/latest/bin JAVA_HOME=/usr/java/latest JAVA_ROOT=/usr/java/latest JDK_HOME=/usr/java/latest JRE_HOME=/usr/lib64/jvm/jre
my proposed alljava.sh seems working fine .. almost fine, it just for safe intentionally exports JRE_HOME along with JDK .. check line #27 regards, daniel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com