This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When changed Java Platform from 1.8(default) to 1.7 project gives below exception and fails to run in default config. However it's still is able to run when select "Run in Browser" or "Run as WebStart. Please see also exception below: Executing /Users/serhiymyronenko/NetBeansProjects/JavaFXApplication16/dist/run341211438/JavaFXApplication16.jar using platform /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) Caused by: java.lang.ClassNotFoundException: javafx.application.Application at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 13 more Java Result: 1 Deleting directory /Users/serhiymyronenko/NetBeansProjects/JavaFXApplication16/dist/run341211438 jfxsa-run: BUILD SUCCESSFUL (total time: 4 seconds)
Thank you for the report, Serhiy. You are correct that this is a bug. However, this is a known issue that is being worked on. Therefore this report is a duplicate of Bug 239388 which you can vote for if you feel it is an important one. Please search through existing JavaFX bugs before submitting a new one. Also, you may find solutions to problems by searching through bugs that are resolved or verified. BTW I updated the Summary with [80cat] and more description. *** This bug has been marked as a duplicate of bug 239388 ***