Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8067406

Unix: UnsupportedClassVersionError will be thrown when launch older jre's jcontrol with jre9 installed on system

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u80
    • 7u80
    • deploy
    • Ubuntu x86/x64/jre9-b42

        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

              vdrozdov Victor Drozdov (Inactive)
              wenjyang Crystal Yang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: