| Summary: | s-s-j doesn't detect java-1.7.0-openjdk | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lukáš Zachar <lzachar> | ||||
| Component: | system-switch-java | Assignee: | jiri vanek <jvanek> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 19 | CC: | dbhole, omajid, pviktori | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | system-switch-java-1.1.5-8.fc19 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-02-22 18:18:58 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Lukáš Zachar
2013-10-16 18:48:10 UTC
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. |