Paul Deldacan
Paul Deldacan

Reputation: 111

JavaFX scene builder 2.0 error in Netbeans

When I try to set the scene builder home in Netbeans 7.4 and target the /Applications/JavaFX Scene Builder 2.0.app its throwing me an error:

Selected location /Applications/JavaFX Scene Builder 2.0.app does not represent a valid JavaFX Scene builder installation.

Upvotes: 5

Views: 7160

Answers (6)

jewelsea
jewelsea

Reputation: 159341

SceneBuilder 2 produces FXML compiant with Java 8.

NetBeans 8 has official support for Java 8, so use SceneBuilder 2 with NetBeans 8+ running on Java 8+.

Oracle provides an official tutorial on the use of SceneBuilder 2 and NetBeans 8. Follow the tutorial to get it to work.

Configuring the Scene Builder Installation Location

If you did not install Scene Builder in the default installation location, use the following steps to let NetBeans IDE be aware of its location:

  1. From the IDE's Main menu, select Tools and choose Options.

    On the Mac OS platform, select NetBeans and choose Preferences from the Main menu.

  2. In the Options window, click Java and then the JavaFX tab.

  3. Specify the location of the Scene Builder installation folder and then click OK.

Upvotes: 0

Mark Janowiec
Mark Janowiec

Reputation: 1

I was able to get JavaFX Scene Builder 2.0 working within NetBeans 7.4 by just renaming the "JavaFX Scene Builder 2.0.exe" to "JavaFX Scene Builder 1.1.exe". Then follow the instructions for Configuring the Scene Builder Installation Location from here. http://docs.oracle.com/javase/8/scene-builder-2/work-with-java-ides/sb-with-nb.htm#JSBID108/

Upvotes: 0

darkness_s
darkness_s

Reputation: 21

I still get this error with Netbeans 7.4, but I've found a workaround:

Go to the folder where you extracted/installed Scene Builder 2 and rename the executable file to "JavaFX Scene Builder 1.1"

It will now be recognized as a valid Scene Builder directory.

Upvotes: 2

Maulik Patel
Maulik Patel

Reputation: 2802

On Windows you must use netbeans version 7.4 and using javafx scence builder 1.1 .
it works.

Upvotes: 0

Danilo
Danilo

Reputation: 2036

I had the same problem with NB 7.4 and JavaFX Scene Builder 2.0 on Debian.

At the moment I solved it installing JavaFX Scene Builder 1.1

Upvotes: 0

An SO User
An SO User

Reputation: 24998

If you have a look at the bug, they say that the solution is available in 7.3 beta and higher.

Bug:

Selecting the JavaFX scene builder home directory throws following error: " does not represent a valid JavaFX Scene Builder installation."

This seems to caused by the names of the subdirectories inside the Scene Builder's root directory; 'app' and 'runtime' (version 1.1 of Scene Builder). When you change the names of those directories to 'bin' and 'lib' respectively, selecting the home directory works (but breaks Scene Builder executable ofcourse).

Only 'workaround' is simply using the Scene Builder outside of Netbeans.

This was tested using Scene Builder 1.1 and NB 7.2 + 7.3beta.

Solution:

Fixed after 7.3 Beta1 and backported to 7.2.1 (now available at netbeans.org).

Either install 7.2.1 or update your 7.2 (you'll get the same set of patches).

Installation Instructions:
Please read these instructions to see if you have made any errors while installation.

Upvotes: 0

Related Questions