I have recently installed JDK8 + Netbeans8 (downloaded the bundled setup from Oracle site) on my Windows 8.1 machine.
When I create a very simple JavaFX FXML applica
That's it. :)
For Maven projects, setting the bootclasspath for the compiler plugin fixes the problem:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
I have the same platform (netbeans 8.0 and JDK 8), searching in other project (build in netbeans 7.4 and JDK 7) I found a little difference in the project.properties file, search it in <>/nbproject, look for the line:
javac.processorpath=\
${javac.classpath}:\
${libs.eclipselinkmodelgen.classpath}
and change the text to finally be the following:
javac.processorpath=\
${javac.classpath}
thats all, I don't know if it's a bug in netbeans 8 or maybe it's something wrong in the way to make the project, but this fix work for me, more details in this blog entry (spanish version)
I got the same error, I checked what imolero said at the project.property file and is exactly as he said is the solution, so I have to change nothing in it.
I realized that each time I worked in a JavaFX project the java files are not compiled automatically when save the file, so I made manually (F9), and re-run the project and every thing works fine. I tried to set Compile on Save in the project properties, but is shadowed, that´s the reason that I have to do it manually. My enviroment is: Windows 7 Professional 64 bits, JDK 1.8.0, Netbeans 8.0 (Build 201403101706)