| Summary: | java.lang.UnsupportedClassVersionError: ... : Unsupported major.minor version 51.0 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | crossfire2003 |
| Component: | java-1.6.0-openjdk | Assignee: | Deepak Bhole <dbhole> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.11 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-17 21:15:52 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: | |
|
Description
crossfire2003
2013-12-10 16:48:42 UTC
The UnsupportedClassVersionError message has been standard for many years now. I don't think changing it is viable since there could easily be scripts that attempt to parse that message and take appropriate action.
The suggested way of fixing this would be to either compile the application with Java 6 ('-source 6 -target 6') or compile the main class with it and have it show a relevant message if it does not detect Java 7 running. If the application is compiled with 6 and it is 3rd party libraries that cause the issue, there should be a catch for java.lang.UnsupportedClassVersionError in the loader code that shows the appropriate message.
As for the mapping, the major/minor version mapping is not vendor dependent AFAIK -- class file versions need to be consistent to ensure that the compiled bytecode can run on any vendor's JVM.
If there are no further objections, I will close this issue as WONTFIX in a week.
|