Bug 1149605
| Summary: | jpackage-utils: support for OpenJDK 8 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Alon Bar-Lev <alonbl> | ||||
| Component: | jpackage-utils | Assignee: | Mikolaj Izdebski <mizdebsk> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Martin Frodl <mfrodl> | ||||
| Severity: | high | Docs Contact: | Russell Dickenson <rdickens> | ||||
| Priority: | high | ||||||
| Version: | 6.6 | CC: | akurtako, alonbl, asaji, bkabrda, dbhole, dgoodwin, dkochuka, dkutalek, el, extras-qa, finke.lamein, fweimer, iheim, javier.ramirez, jerboaa, jvanek, lfarkas, mfrodl, mizdebsk, rbost, salmy | ||||
| Target Milestone: | rc | Keywords: | EasyFix, FutureFeature, Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 1.7.5-3.13 | Doc Type: | Release Note | ||||
| Doc Text: |
Support for OpenJDK 8 added to JPackage Utilities
OpenJDK 8 was added to RHEL 6.6 but system Java applications were not able to be run with it due to lack of OpenJDK 8 support in the _jpackage-utils_ package. This has been resolved, and the RHEL 6.7 _jpackage-utils_ package includes support for system applications to be run with OpenJDK 8.
|
Story Points: | --- | ||||
| Clone Of: | 982683 | Environment: | |||||
| Last Closed: | 2015-07-22 05:55:05 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: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 982683 | ||||||
| Bug Blocks: | 1159824 | ||||||
| Attachments: |
|
||||||
|
Description
Alon Bar-Lev
2014-10-06 08:12:16 UTC
Cloned to to failures in brew to use build-classpath using rhel-6 candidate. /usr/bin/build-classpath: error: JAVAVER_LIBDIR /usr/share/java- does not exist or is not a directory A customer also reported this possible solution:
-----
The problem is that jpackage-utils is not yet prepared for Java 8.
You have top add to your rpm jpackage-utils:
/usr/share/java-1.8.0
/usr/lib/java-1.8.0
And the difference of Java 7 and Java 8 is:
# /etc/alternatives/jre_1.7.0/bin/java -version
java version "1.7.0_65"
[...]
# /etc/alternatives/jre_1.8.0/bin/java -version
openjdk version "1.8.0_20"
[...]
Your script /usr/share/java-utils/java-functions has problems with "openjdk version" because it expects "java version" as Java 7 does.
# mkdir /usr/share/java-1.8.0
# mkdir /usr/lib/java-1.8.0
# diff /usr/share/java-utils/java-functions.orig /usr/share/java-utils/java-functions
149,150c149,150
< -e '/java \(full \)*version "/s/'$re'/<<<\1>>>/' \
< -e '/java \(full \)*version "/s/.*<<<\([^>]\{1,\}\)>>>.*/\1/p')
---
> -e '/[java|openjdk] \(full \)*version "/s/'$re'/<<<\1>>>/' \
> -e '/[java|openjdk] \(full \)*version "/s/.*<<<\([^>]\{1,\}\)>>>.*/\1/p')
------
This was fixed in Fedora as bug 982683. We're quite blocked on some builds in the absence of this, any chance we could bump the priority? Created attachment 948839 [details]
Proposed patch
Reproducer: # yum install java-1.8.0-openjdk-devel ant $ JAVA_HOME=/usr/lib/jvm/java-1.8.0 ant -version Expected results: Apache Ant version 1.7.1 compiled on April 26 2010 Actual results: Error: Could not find or load main class org.apache.tools.ant.launch.Launcher *** Bug 1152598 has been marked as a duplicate of this bug. *** Fixed in jpackage-utils-1.7.5-3.13 CCS has determined that this bug should be described in the RHEL 6.7 Release Notes. Please update the Doc Text field with a summary feature description. *** Bug 1208832 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-1248.html |