Description of problem: I have installed java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64 but s-s-j says that: No supported Java packages were found. A supported Java package is one that installs a file of the form: /usr/lib/jvm/jre-$version-$vendor/bin/java Version-Release number of selected component (if applicable): java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64 system-switch-java-1.1.5-6.fc19.noarch How reproducible: always Steps to Reproduce: 1. install java-1.7.0-openjdk 2. run system-switch-java 3. Actual results: An error as in the description Expected results: Shows installed openjdk Additional info:
If you install java-1.5.0-gcj-devel too, the error is different: $ system-switch-java Traceback (most recent call last): File "/usr/sbin/system-switch-java", line 89, in <module> main() File "/usr/sbin/system-switch-java", line 50, in main java_identifiers, best_identifier = get_java_identifiers() File "/usr/share/system-switch-java/switch_java_functions.py", line 132, in get_java_identifiers best_identifier = java_identifiers[best] IndexError: list index out of range I looked into system-switch-java's source and system-switch-java is hardcoding all paths (it assumes the jre is at /usr/lib/jvm/java-${VERSION}-${VENDOR}) We recently changed all these paths :(
(In reply to Omair Majid from comment #1) > (it assumes the jre is at /usr/lib/jvm/java-${VERSION}-${VENDOR}) I meant /usr/lib/jvm/jre ...
*** Bug 990925 has been marked as a duplicate of this bug. ***
Created attachment 860782 [details] work with newer-style java-XYZ/jre as well as older jre-XYZ style alternatives
Are you planing to push fedora?
(In reply to jiri vanek from comment #5) > Are you planing to push fedora? Yeah, but only tested it on Fedora 20 so far.
system-switch-java-1.1.5-8.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/system-switch-java-1.1.5-8.fc19
Package system-switch-java-1.1.5-8.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing system-switch-java-1.1.5-8.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2242/system-switch-java-1.1.5-8.fc19 then log in and leave karma (feedback).
system-switch-java-1.1.5-8.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.