简体   繁体   中英

Compiling JAVAFX in Netbeans 7.3.1 + JDK1.7.0_40

I had JDK 1.7.0_25 and Netbeans 7.3.1 as well as Javafx + Scenebuilder 1.1 installed on Window 7 64-bit. All worked fine. Now that a newer JAVA is out, I uninstalled everything then downloaded and installed the Netbeans 7.3.1 + JDK 1.7.0_40 bundle and installed Scene builder 1.1. Supposedly, this should have JAVAFX included. I've also changed the PATH variable to point to C:\\Program files\\Java\\jdk1.7.0_40\\bin. Java projects compile fine. However, JAVAFX projects fail with the message:

java.io.IOException: Cannot run program "C:\\Program Files\\Java\\jdk1.7.0_25\\bin\\java"

The java platforms all point to JDK 1.7.0_40.

Is there some other place which might still be pointing to jdk1.7.0_25?

Any help is much appreciated!

Many thanks!

It sounds a lot like you need to edit your project settings and set the project's build and run SDKs to the right location. If these are set, they'll be overriding the PATH variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM