I'm trying to use the SceneBuilder with IntelliJ on Mac. So I downloaded the .dmg file from there http://gluonhq.com/products/downloads/
Now I supplied the following path to the SceneBuilder in IntelliJ:
/Applications/SceneBuilder.app/Contents/MacOS/SceneBuilder
When I tried to open a .fxml
, I get the error
Failed to start SceneBuilder:
/Applications/SceneBuilder.app/Contents/MacOS/SceneBuilder/Contents/MacOS/scenebuilder-launcher.sh
It seems like IntelliJ is looking for this sh-script but I have no clue where it is to be honest. I have looked over several webpages on the net but no one helped me actually...
So how do I fix my problem or how can use the scene builder in IntelliJ?
Thanks
I've solved the problem.
1. First go to:
Eclipse (Or IntelliJ) -> Preferences -> JavaFX -> Then type/choose "/Applications/SceneBuilder.app" -> Press Ok
2. Then, go to:
Applications -> Right click on SceneBuilder -> Click on "Show package contents" --> Contents -> MacOS -> Rename the file "SceneBuilder" as "scenebuilder-launcher.sh"
There you go!
Look at the path it is trying to open.. I suggest you to convert your configured SceneBuilder path to:
/Applications/SceneBuilder.app/
Edit: Quick fix would be to download the old SceneBuilder 2 here: http://www.oracle.com/technetwork/java/javafxscenebuilder-1x-archive-2199384.html and extract its sh
start script to the correct folder.
This worked for me.
Downloaded the .dmg for the Mac at http://gluonhq.com/open-source/scene-builder/
Install SceneBuilder which will then be located under Applications.
In IntelliJ
Ensured that the path was correct by going to the following:
IntelliJ IDEA -> Preferences -> Languages and Frameworks -> JavaFX
The value for "Path to SceneBuilder" should be /Applications/SceneBuilder.app
As per Rilcy88
Renamed SceneBuilder to scenebuilder-launcher.sh under Applications -> Contents -> MacOS.
In the project, I was able to right click on my .fxml file and selected "Open in Scenbuilder" with no problems.
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.