[Bug 709438] New: java can't be found
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c0 Summary: java can't be found Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Major Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: Sascha.Manns@open-slx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.30 sascha@linux-uln9:~> nevernote.sh /usr/share/nevernote/nevernote.sh: Zeile 118: java: Kommando nicht gefunden. /home/sascha Looks like java isn't in $PATH Reproducible: Always Steps to Reproduce: 1. start any JAVA Program 2. 3. Actual Results: sascha@linux-uln9:~> nevernote.sh /usr/share/nevernote/nevernote.sh: Zeile 118: java: Kommando nicht gefunden. /home/sascha Expected Results: find JAVA Using SUN Java from our Repos. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c1 --- Comment #1 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-02 12:40:19 UTC --- Just found out: /usr/bin/java points to /etc/alternatives/java /etc/alternatives/java points to /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java which isn't installed. I'm using java-sun. I guess i must use update-alternaives to fix that. But how to use? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c2 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |NEEDINFO CC| |mvyskocil@novell.com InfoProvider| |Sascha.Manns@open-slx.de --- Comment #2 from Michal Vyskocil <mvyskocil@novell.com> 2011-08-03 05:43:09 UTC --- You're right. The command you're looking for is update-alternatives --auto java you might try javac and javaplugin as well, if you have the java-*sun-devel and java*-sun-plugin packages installed. This will switch the alternative to the auto state, so the alternative will be maintained by this script and ever point to one of installed binaries. Did it help you? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c3 Sascha Manns <Sascha.Manns@open-slx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|Sascha.Manns@open-slx.de | --- Comment #3 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-03 10:40:53 UTC --- Thanks for responding Michal :-) Then comes: linux-uln9:/usr/lib64 # update-alternatives --auto java update-alternatives: error or eof reading /var/lib/rpm/alternatives/java for sname () The content of /var/lib/rpm/alternatives/java is: --- snip --- auto /usr/bin/java keytool.1.gz /usr/share/man/man1/keytool.1.gz rmid.1.gz /usr/share/man/man1/rmid.1.gz orbd.1.gz /usr/share/man/man1/orbd.1.gz rmid /usr/bin/rmid servertool.1.gz /usr/share/man/man1/servertool.1.gz javaws.1.gz /usr/share/man/man1/javaws.1.gz jre_exports /usr/lib64/jvm-exports/jre javaws /usr/bin/javaws policytool /usr/bin/policytool orbd /usr/bin/orbd rmiregistry /usr/bin/rmiregistry tnameserv /usr/bin/tnameserv rmiregistry.1.gz /usr/share/man/man1/rmiregistry.1.gz ControlPanel /usr/bin/ControlPanel tnameserv.1.gz /usr/share/man/man1/tnameserv.1.gz keytool /usr/bin/keytool servertool /usr/bin/servertool java.1.gz /usr/share/man/man1/java.1.gz jre /usr/lib64/jvm/jre policytool.1.gz /usr/share/man/man1/policytool.1.gz /usr/lib64/jvm/jre-1.6.0-sun/bin/java 1617 /usr/share/man/man1/keytool-java-1_6_0-sun.1.gz /usr/share/man/man1/rmid-java-1_6_0-sun.1.gz /usr/share/man/man1/orbd-java-1_6_0-sun.1.gz /usr/lib64/jvm/jre-1.6.0-sun/bin/rmid /usr/share/man/man1/servertool-java-1_6_0-sun.1.gz /usr/share/man/man1/javaws-java-1_6_0-sun.1.gz /usr/lib64/jvm-exports/jre-1.6.0-sun /usr/lib64/jvm/jre-1.6.0-sun/bin/javaws /usr/lib64/jvm/jre-1.6.0-sun/bin/policytool /usr/lib64/jvm/jre-1.6.0-sun/bin/orbd /usr/lib64/jvm/jre-1.6.0-sun/bin/rmiregistry /usr/lib64/jvm/jre-1.6.0-sun/bin/tnameserv /usr/share/man/man1/rmiregistry-java-1_6_0-sun.1.gz /usr/lib64/jvm/jre-1.6.0-sun/bin/ControlPanel /usr/share/man/man1/tnameserv-java-1_6_0-sun.1.gz /usr/lib64/jvm/jre-1.6.0-sun/bin/keytool /usr/lib64/jvm/jre-1.6.0-sun/bin/servertool /usr/share/man/man1/java-java-1_6_0-sun.1.gz /usr/lib64/jvm/jre-1.6.0-sun /usr/share/man/man1/policytool-java-1_6_0-sun.1.gz /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java 17105 /usr/share/man/man1/keytool-java-1.6.0-openjdk.1.gz /usr/share/man/man1/rmid-java-1.6.0-openjdk.1.gz /usr/share/man/man1/orbd-java-1.6.0-openjdk.1.gz /usr/lib64/jvm/jre-1.6.0-openjdk/bin/rmid /usr/share/man/man1/servertool-java-1.6.0-openjdk.1.gz /usr/lib64/jvm-exports/jre-1.6.0-openjdk /usr/lib64/jvm/jre-1.6.0-openjdk/bin/javaws /usr/lib64/jvm/jre-1.6.0-openjdk/bin/policytool /usr/lib64/jvm/jre-1.6.0-openjdk/bin/orbd /usr/lib64/jvm/jre-1.6.0-openjdk/bin/rmiregistry /usr/lib64/jvm/jre-1.6.0-openjdk/bin/tnameserv /usr/share/man/man1/rmiregistry-java-1.6.0-openjdk.1.gz /usr/share/man/man1/tnameserv-java-1.6.0-openjdk.1.gz /usr/lib64/jvm/jre-1.6.0-openjdk/bin/keytool /usr/lib64/jvm/jre-1.6.0-openjdk/bin/servertool /usr/share/man/man1/java-java-1.6.0-openjdk.1.gz /usr/lib64/jvm/jre-1.6.0-openjdk /usr/share/man/man1/policytool-java-1.6.0-openjdk.1.gz --- snap --- -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c4 --- Comment #4 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-08 19:14:42 UTC --- Anything news there? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c5 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |Sascha.Manns@open-slx.de --- Comment #5 from Michal Vyskocil <mvyskocil@novell.com> 2011-08-09 08:47:55 UTC --- Well, that explained it - your java alternative is broken. The most easy way how to fix that is rpm -r --nodeps java-1_6_0-sun java-1_6_0-openjdk (add devel and plugin subpackages if you wish) and then install it again. It's not easy to fix the file on your own, sorry. Does it help you? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c6 --- Comment #6 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-13 14:09:04 UTC --- Then comes: rpm -e --nodeps java-1_6_0-sun java-1_6_0-openjdk warning: /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties saved as /usr/lib64/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties.rpmsave update-alternatives: error or eof reading /var/lib/rpm/alternatives/java for sname () update-alternatives: error or eof reading /var/lib/rpm/alternatives/java for sname () Looks like it is broken ... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c7 --- Comment #7 from Michal Vyskocil <mvyskocil@novell.com> 2011-08-15 13:07:54 UTC --- ok, here is the big ugly workaround (as root) mv /usr/sbin/update-alternatives /usr/sbin/ua ln -sf /bin/true /usr/sbin/update-altrenatives rpm -e --nodeps ... rm -rf /var/lib/rpm/alternatives/java* mv /usr/sbin/ua /usr/sbin/update-alternatives zypper ref; zypper in java-1_6_0-$vendor -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c8 --- Comment #8 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-18 10:15:49 UTC --- Yes this works. Thanks a lot :-) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=709438 https://bugzilla.novell.com/show_bug.cgi?id=709438#c9 Sascha Manns <Sascha.Manns@open-slx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|Sascha.Manns@open-slx.de | Resolution| |FIXED --- Comment #9 from Sascha Manns <Sascha.Manns@open-slx.de> 2011-08-18 10:17:22 UTC --- closed at fixed -- 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