This content has been marked as final. Show 2 replies
NetBeans 7.3 is somewhat incompatible with Java 8.
See the thread:
Re: javafx platform is not correctly defined "Thread: javafx platform is not correctly defined"
And NetBeans Bug:
"Bug 225326 - Allow usage of early JDK8 builds for FX projects in early NB8 builds"
To at least make Java 8 usable on NetBeans 7.3, what I did was create a new JavaFX application in NetBeans, then manually remove the compiletime libraries (File | Project Properties | Libraries | Compile) which NetBeans was unable to resolve for JavaFX and manually add the right ones in by choosing Add Jar Folder... under the libraries dialog and selecting the jdk/jre/lib deploy, plugin and javaws jars and the jfxrt.jar from jdk/jre/lib/ext.
Alternately, you might want to try software which might have better support for Java 8 previews:
- Eclipse with e(fx)clipse plugin
- Idea 12.1
- A NetBeans lambda preview
Happy yak shaving day: