Red Hat Bugzilla – Bug 404331
s-s-java is unable to deal with a broken java path
Last modified: 2013-10-02 08:02:01 EDT
Description of problem:
I noticed my java configuration was broken - /usr/bin/java was pointing to
/etc/alternatives/java but that was a broken symlink (to
/usr/lib/jvm/jre-1.5.0-ibm.x86_64/bin/java, but this file didn't exist). So I
ran system-switch-java with a hope that it would help me fix the setup, but it
Traceback (most recent call last):
File "/usr/sbin/system-switch-java", line 89, in ?
File "/usr/sbin/system-switch-java", line 70, in main
default_java_command = JAVA[best_alternative]
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. install a JVM which uses the alternatives system
2. break the path to the java executable
3. run system-switch-java
It fails to launch.
It at least detects the error and either says displays a helpful error message,
skipping the broken JVM.
s/either says // - I thought I would list two options but then I couldn't think
of anything else and forgot to fix the sentence. Sorry about any confusion.
This is fixed in system-switch-java 1.1.2. It will be fixed when 1.1.2 is
backported to RHEL-5. See:
system-switch-java-1.1.2-1.el5_1 built in RHEL-5.1-Z-candidate.