Bug ID | 1107342 |
---|---|
Summary | JAVA_HOME incorrectly set by /etc/profile.d/alljava.* |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | x86-64 |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Java |
Assignee | bnc-team-java@forge.provo.novell.com |
Reporter | mario.g.pavlov@gmail.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Created attachment 782101 [details]
Patches for both the Bourne shell and the C shell.
If custom java (e.g. Oracle) is installed and used via the "alternatives
system" then /etc/profile.d/alljava.* wouldn't set the correct JAVA_HOME.
So the user is in a situation where they have all links pointing to their
custom java but the JAVA_HOME env var is set to whatever OpenJDK was installed
before that.
This causes nasty issues with all sorts of java tools and applications.
Please find attached patches that add support for determining JAVA_HOME via
/etc/alternatives/java if exists.
The patches were tested with the latest Tumbleweed as of this writing.