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

GA-Samples SwingInterop.jar NoClassDefFoundError

XMLWordPrintable

      There is a recent addition to GA-Samples bundle called SwingInterop.jar. Attempting to launch this results in a NPE.

      c:\swat\ga-samples>java -jar SwingInterop.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
              at java.lang.Class.getMethod0(Unknown Source)
              at java.lang.Class.getMethod(Unknown Source)
              at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
              at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
              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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
              at java.lang.ClassLoader.loadClass(Unknown Source)
              ... 6 more

            dmasada Debra Masada (Inactive)
            tbeckham Tony Beckham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: