[Bug 892752] New: alljava.sh sets JAVA_HOME to wrong jdk
https://bugzilla.novell.com/show_bug.cgi?id=892752 https://bugzilla.novell.com/show_bug.cgi?id=892752#c0 Summary: alljava.sh sets JAVA_HOME to wrong jdk Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: openSUSE 13.1 Status: NEW Severity: Minor Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: novell@chromanet.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Installed was jre-1.7.0-openjdk and sun jdk1.8.0_11. Installed ant. Ant needs jre-1.5.0-gcj. $JAVA_HOME was set to jre-1.5.0, even though /usr/sbin/update-alternatives --config javac pointed to /usr/java/jdk1.8.0_11/bin/javac and /usr/sbin/update-alternatives --config java pointed to /usr/java/latest/bin/java Reason: /etc/profile.d/alljava.sh uses the first found JDK in /usr/lib64/jvm, which is java-1.5.0 -> /etc/alternatives/java_sdk_1.5.0 Workaround: added a symlink default -> /usr/java/latest Reproducible: Always Steps to Reproduce: 1. Install JDK 2. Install ant, then execute /etc/profile.d/alljava.sh 3. Check $JAVA_HOME Actual Results: $JAVA_HOME=/usr/lib64/jvm/java-1.5.0 Expected Results: $JAVA_HOME=/usr/lib64/jvm/java-1.7.0-openjdk -- 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