I hope this is the right place for my (maybe a very beginner) question.
I'm about to learn JavaFX and therefore wanted to try out the samples provided by NetBeans.
But when I compile one of the JavaFX samples, I get following errors and warnings
as well as
For compiling the project, I had to add a new "platform" for JDK 1.8 in netbeans, because in JDK 1.7 JavaFX is not included. Netbeans-Screenshots can be seen here
But I can compile and build projects with JDK 7 - but then I can't use JavaFX of course.
It seems that there is a version conflict with JDK?! But as I'm completely new to Netbeans, I wasnt able to find how to fix it
This is my system: I'm using NetBeans 8.0.1 on Linux Mint 17, "java -version" tells me
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
I have also checked "which java", "whereis java" which points to the right location, where I installed the JDK 8 stuff (it prompts "/usr/bin/java -> /etc/alternatives/java" and "/etc/alternatives/java -> /usr/local/java/jdk1.8.0_11/bin/java").
It works now!
You are right, I had to remove JDK 7 from the platforms.
To help others which maybe encounter this issue: This can be done, by starting netbeans with the parameter "--jdkhome /path/to/JDK" (or by modifying the netbeans.conf).
It's a little bit embarassing, that I didn't try this out before. The reason was, that in the project properties the Runtime platform was set to "Project Platform", which I assumed to be the building platform.
Apparently it is not Or it's a little bit buggy xD
Thank you again for your answer!!
What? What, what, what? What what tiny ad:
Devious Experiments for a Truly Passive Greenhouse!