[opensuse] 13.2 - java weirdness
Howdy... :~> uname -a Linux msbhpmain.site 3.16.6-2-desktop #1 SMP PREEMPT Mon Oct 20 13:47:22 UTC 2014 (feb42ea) x86_64 x86_64 x86_64 GNU/Linux I have two versions of the java jre on my recent 13.2 install, 1.7.0_71 and 1.8.0_40. In "update-alternatives --config java" the setting is to "auto", which means 1.8.0_40 gets reported to inquiring apps and/or scripts. As this is a new install and I don't recall manually adding any version of java to it myself, I will assume this is all exactly as 13.2 installed it. Now, because a 3rd-party-written script failed when I moved it from my old 13.1 install over to the 13.2 one, I looked at this... With 1.8 as the "update-alternative": :~> java -version openjdk version "1.8.0_40" OpenJDK Runtime Environment (build 1.8.0_40-b10) OpenJDK 64-Bit Server VM (build 25.40-b14, mixed mode) and with 1.7 as the "update-alternative": :~> java -version java version "1.7.0_71" OpenJDK Runtime Environment (IcedTea 2.5.3) (suse-1.1-x86_64) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) So, with 1.8 the java version is reported as "openjdk version", while with 1.7 it is "java version". The script was looking for the string "java version" which it doesn't find when 1.8 is the option. Question: was this change in return-of-string intentional or is it a bug? The reason I ask whether it might be a bug is because, when exiting "update-alternatives" after selecting 1.8 or auto, the following warning message is displayed... update-alternatives: warning: skip creation of /usr/share/man/man1/policytool.1.gz because associated file /usr/share/man/man1/policytool-java-1.8.0-openjdk.1.gz (of link group java) doesn't exist ...which IS apparently a bug (?) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Sonntag, 16. November 2014, 09:04:24 schrieb listreader:
[...] So, with 1.8 the java version is reported as "openjdk version", while with 1.7 it is "java version". The script was looking for the string "java version" which it doesn't find when 1.8 is the option.
Question: was this change in return-of-string intentional or is it a bug?
Upstream changed it intentionally a long time ago: http://thread.gmane.org/gmane.comp.java.openjdk.jdk8.devel/2360 However, it seems that some IcedTea specific patch fixed it in the past: http://icedtea.classpath.org/hg/icedtea7-forest/jdk/rev/cd86da3affff If you compare the Summary of the java-1_7_0-openjdk and java-1_8_0-openjdk packages provided by openSUSE, you will see that the former mentions IcedTea 7 while the latter does not. The same holds true for your output of "java - version". I.e., you get the original OpenJDK 8 but IcedTea 7.
[...] update-alternatives: warning: skip creation of /usr/share/man/man1/policytool.1.gz because associated file /usr/share/man/man1/policytool-java-1.8.0-openjdk.1.gz (of link group java) doesn't exist
...which IS apparently a bug (?)
Sorry, no idea. Just open a bug report and let the maintainer check it. Gruß Jan -- You know you're in trouble when you can't stand folks who are intolerant. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 16 Nov 2014 18:07:13 +0100
Jan Ritzerfeld
Am Sonntag, 16. November 2014, 09:04:24 schrieb listreader:
[...] So, with 1.8 the java version is reported as "openjdk version", while with 1.7 it is "java version". The script was looking for the string "java version" which it doesn't find when 1.8 is the option.
Question: was this change in return-of-string intentional or is it a bug?
Upstream changed it intentionally a long time ago: http://thread.gmane.org/gmane.comp.java.openjdk.jdk8.devel/2360 However, it seems that some IcedTea specific patch fixed it in the past: http://icedtea.classpath.org/hg/icedtea7-forest/jdk/rev/cd86da3affff If you compare the Summary of the java-1_7_0-openjdk and java-1_8_0-openjdk packages provided by openSUSE, you will see that the former mentions IcedTea 7 while the latter does not. The same holds true for your output of "java - version". I.e., you get the original OpenJDK 8 but IcedTea 7.
Thank you for the explanations and the links, Jan. Much appreciated. Ordinary users such as myself don't tend to learn about this stuff until it jumps out of the bushes and bites us. Ralph -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Montag, 17. November 2014, 06:27:35 schrieb listreader:
[...] Thank you for the explanations and the links, Jan. Much appreciated. Ordinary users such as myself don't tend to learn about this stuff until it jumps out of the bushes and bites us.
Me too, I was just curious. So, I read the the openjdk source and googled for one or two hours. :) Gruß Jan -- If you don't care where you are, then you ain't lost. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Jan Ritzerfeld
-
listreader