问题
I am using: Mac OS X 10.10.1
NetBeans 8.0.2
SceneBuilder 8.0.0 downloaded from gluonhq.com
I dragged SceneBuilder to Applications folder. When I go to Options>Java>JavaFX and set Scene Builder path to the Applications folder, I get the error:
Selected location does not represent a valid JavaFX Scene Builder installation
Kindly guide me.
回答1:
Add Scene Builder to Netbeans 8.2
Here are the steps that I went through to setup Scene Builder:
You can download Scene Builder 8.2 here
Install the package (or run the installer) and find the install location
/opt/SceneBuilder
on UbuntuC:\Users\{username}\AppData\Roaming\Scene Builder
on Windows 10
Then to link it to Netbeans IDE 8.2 go to Tools>Options>Java>JavaFX
Select Browse from the Scene Builder Home drop down menu
Finally navigate to the install location for Scene Builder 8.2 and click Open and then Ok
To enjoy your newly found Scene Builder bliss, right click on a .fxml file in the Project Pane, and select Open.
[Note: One would use the Edit option to edit the .fxml code ]
[Update: You can still download Oracle's JavaFX Scene Builder 2.0 here, but Gluon is now maintaining Scene Builder ]
回答2:
- Create project File > New project > JavaFX > JavaFX FXML Application
- Download Scene Builder follow this link
- To link Scene Builder(no matter v1.1 or v2.0) do next steps: Service > Parameters > Java > JavaFX > Scene Builder start page > Preview and show path to unpacked folder. Confirm.
- In your project right click .fxml and click Open.
回答3:
you can also download a javafx program an you specify well the path where you wan to install your scene builder; on netbeans ... i have the version 8.0.2 then go to tools-> options->javaFX specify exactly the directory where you installed it (scnene builder) i tried on windows. Your project w'll automatically build then go to your file fxml right click and open
回答4:
Make sure your Java(JDK) version and Scene Builder version must be same. Scene Builder v10 is not compatible with Java v1.8.
回答5:
When you use NetBeans 8 in Mac OS X, if your NetBeans IDE is running, after installing SceneBuilder, you can not integrate SceneBuilder with NetBeans IDE before restart NetBeans! So the only thing you can do is restarting NetBeans, and NetBeans will find and integrate SceneBuilder.app in Applications folder automatically.
来源:https://stackoverflow.com/questions/29459384/setting-up-scene-builder-with-netbeans-8-0-2