I downloaded a JDK 8, NetBeans 7.3 and installed them.
After that i opened 2 projects -one of them uses JavaFX- i have tried to make those projects to run/compile without luck... the error says "
JavaFX runtime JAR not found.
BUILD FAILED (total time: 4 seconds)
No Default JavaFX platform was created by NB and i created one pointing to the JDK 8...
any ideas on how to conigure this?
Thanks in advance.
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: