JDK-8067406 : Unix: UnsupportedClassVersionError will be thrown when launch older jre's jcontrol with jre9 installed on system
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 7u80
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-12-15
  • Updated: 2015-02-02
  • Resolved: 2014-12-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u80 b05Fixed
Description
ENV: Ubuntu x86/x64
Steps to reproduce:
1. Install jre7u17-b32
2. Install jre9-b42
3. Launch jcp from jre9's install directory: JRE9_DIR/bin/jcontrol
4. Make sure that jcp can be launched successfully and there are two items from JCP->Java->View
5. Close jcp
6. Launch jcp from jre7u17's install directory: JRE7U17_DIR/bin/jcontrol
7. If you see the following error shows up, then this bug is reproduced"   java.lang.UnsupportedClassVersionError: com/sun/javafx/runtime/VersionInfo : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at com.sun.deploy.config.JfxRuntime.runtimeForPath(Unknown Source)
	at com.sun.deploy.config.JREInfo.<init>(Unknown Source)
	at com.sun.deploy.config.JREInfo.<init>(Unknown Source)
	at com.sun.deploy.config.JREInfo.initialize(Unknown Source)
	at com.sun.deploy.config.ClientConfig.refreshProperties(Unknown Source)
	at com.sun.deploy.config.ClientConfig.init(Unknown Source)
	at com.sun.deploy.config.ClientConfig.<init>(Unknown Source)
	at com.sun.deploy.config.JCPConfig.<init>(Unknown Source)
	at com.sun.deploy.panel.ControlPanel.<init>(Unknown Source)
	at com.sun.deploy.panel.ControlPanel.main(Unknown Source)

Note: no such error when only 7u17 installed on system

Comments
This is 7u problem only. JfxRuntime.runtimeForPath() should be modified in 7u workspace to avoid the exception.
19-12-2014

Affected tests: RULE JDK8010370Scenarios/testJDK8010370 any any RULE ssv2Scenarios/testJREInstalledButDisable any any
15-12-2014