https://bugzilla.novell.com/show_bug.cgi?id=722252
https://bugzilla.novell.com/show_bug.cgi?id=722252#c4
--- Comment #4 from Daniel Pecka 2011-10-05 13:33:32 UTC ---
hmm .. it's not so easy and it still doesn't work optimally.
we must not distinguish jre and jdk as two separete products .. jdk **contains
full jre (some legacy compatibility):
# md5sum /usr/jdk/latest/jre/bin/java /usr/jdk/latest/bin/java
681f66bbd29b5277519b169b03b988fc /usr/jdk/latest/jre/bin/java
681f66bbd29b5277519b169b03b988fc /usr/jdk/latest/bin/java
so the JAVA_HOME env should point to /usr/java symlink created by our rpm. on
solaris (or after using rpm from sun) it looks like this:
# ls -l /usr/java /usr/jdk/latest
lrwxrwxrwx 1 root other 15 Jul 21 11:48 /usr/java ->
jdk/jdk1.5.0_30
lrwxrwxrwx 1 root other 11 Jul 21 12:45 /usr/jdk/latest ->
jdk1.6.0_26
in suse it should looks like this (in case of installed jdk):
# ls -l /usr/java /usr/jdk/latest
lrwxrwxrwx 1 root root 16 Oct 5 14:02 /usr/java -> jdk/jdk1.6.0_27/
lrwxrwxrwx 1 root root 12 Oct 5 14:00 /usr/jdk/latest -> jdk1.6.0_27/
so JAVA_HOME has nothing to do with lookin for jre|jdk .. JAVA_HOME just should
be /usr/java which is symlink to your actual jdk|jre instance.
please note, that original java package from oracle contains $root/jre <- yes,
it's stupid and messy so our current /usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre is
*bad filesystem layout.
i don't think that's good way to tweak it in alljava.sh .. we should fix
java-1_6_0-sun-1.6.0.u26-0.2.1.x86_64 that it creates standard symlink
/usr/java.
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.