Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 240314 - [80cat] Changing JavaFX Platform to 1.7 causes exceptions at runtime
[80cat] Changing JavaFX Platform to 1.7 causes exceptions at runtime
Status: VERIFIED DUPLICATE of bug 239388
Product: javafx
Classification: Unclassified
Component: Project
8.0
Macintosh Mac OS X
: P4 (vote)
: TBD
Assigned To: Roman Svitanic
issues@javafx
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-12 05:52 UTC by serhiy.myronenko
Modified: 2014-02-13 05:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description serhiy.myronenko 2014-01-12 05:52:23 UTC
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)
Comment 1 Lou Dasaro 2014-01-12 08:12:30 UTC
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 ***


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo