[Bug 492820] New: update-alternatives does not affect $JAVA_HOME
http://bugzilla.novell.com/show_bug.cgi?id=492820 Summary: update-alternatives does not affect $JAVA_HOME Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Minor Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: jost@dcs.st-andrews.ac.uk QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1 Firefox/3.0.8 Using "update-alertantives --config java" does not change the setting for the environment variable $JAVA_HOME. This causes some programs and skripts that rely on this variable to pick the wrong java version, desipte java -version showing success of the choice made in "update-alternatives". EXAMPLE: # update-alternatives --config java There are 5 alternatives which provide `java'. Selection Alternative ----------------------------------------------- 1 /usr/lib64/jvm/jre-1.5.0-gcj/bin/java + 2 /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java 3 /usr/lib64/jvm/jre-1.7.0-icedtea/bin/java 4 /usr/lib64/jvm/jre-1.5.0-sun/bin/java * 5 /usr/lib64/jvm/jre-1.6.0-sun/bin/java Press enter to keep the default[*], or type selection number: 5 Using '/usr/lib64/jvm/jre-1.6.0-sun/bin/java' to provide 'java'.
java -version java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
echo $JAVA_HOME /usr/lib64/jvm/java
ll $JAVA_HOME lrwxrwxrwx 1 root root /usr/lib64/jvm/java -> /etc/alternatives/java_sdk
ll /etc/alternatives/java_sdk lrwxrwxrwx 1 root root /etc/alternatives/java_sdk -> /usr/lib64/jvm/java-1.6.0-openjdk
Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492820
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=492820#c1
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=492820
User jost@dcs.st-andrews.ac.uk added comment
http://bugzilla.novell.com/show_bug.cgi?id=492820#c2
--- Comment #2 from Steffen Jost
echo $JRE_HOME /usr/lib64/jvm/java/jre echo $JAVA_HOME /usr/lib64/jvm/java echo $JDK_HOME /usr/lib64/jvm/java echo $SDK_HOME /usr/lib64/jvm/java ll /usr/lib64/jvm/java/jre
/usr/lib64/jvm/java/jre/bin/java -version java version "1.6.0_0" IcedTea6 1.4 (suse-24.3.1-x86_64) Runtime Environment (build 1.6.0_0-b14) OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
java -version java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=492820
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=492820#c3
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=492820
User mvyskocil@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=492820#c5
Michal Vyskocil
http://bugzilla.novell.com/show_bug.cgi?id=492820
User ro@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=492820#c6
Ruediger Oertel
participants (1)
-
bugzilla_noreply@novell.com