Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the SceneBuilder with IntelliJ on Mac

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

like image 961
user2336315 Avatar asked Apr 17 '15 08:04

user2336315


3 Answers

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.

like image 134
eckig Avatar answered Nov 15 '22 18:11

eckig


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!

like image 38
Rilcy88 Avatar answered Nov 15 '22 17:11

Rilcy88


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.

like image 3
Tim Avatar answered Nov 15 '22 18:11

Tim