Error opening scene builder

2020-05-19 05:31发布

I'm making a program with Javafx Eclipse and I get an error when I open the program with the Scene Builder

This is the error:

Opening the file with SceneBuilder failed. 
Try setting the absolute path to scenebuilder in your preferences

9条回答
Melony?
2楼-- · 2020-05-19 05:38

None of the previous answers solve the described problem for me.
This answer did.

查看更多
干净又极端
3楼-- · 2020-05-19 05:40
  1. I downloaded SceneBuilder 8.0 from http://gluonhq.com/products/downloads/ because Oracle only provides the source code.

  2. Configure Eclipse to use SceneBuilder executable. Go to Preferences -> JavaFX -> set SceneBuilder executable. Mine was C:\Users\USERNAME\AppData\Local\SceneBuilder\SceneBuilder.exe

查看更多
对你真心纯属浪费
4楼-- · 2020-05-19 05:45

set the path to SceneBuilder app; to do this on mac os

  1. go to eclipse in your menu bar and click on preferences or press the keyboard shortcut "cmd" + ",".
  2. then click on JavaFX
  3. click on browse to select the path to sceneBuilder executable (which should be in your application folder if you are running mac os.
查看更多
叛逆
5楼-- · 2020-05-19 05:46

I was getting the same error: SceneBuilderError

The way I solved it is by me going to (on Mac) Eclipse/Preferences/JavaFX JavaFX Preferences SceneBuilder executable, click on "Browse" then select the application SceneBuilder. that should fix it. Apply and close. Now try it again and it should open it up. Hope this helps.

查看更多
Summer. ? 凉城
6楼-- · 2020-05-19 05:52

Make sure you are running the latest version of Eclipse. I've tested this with Luna 4.4 as I had the same issue.

Install the latest version of JavaFX Scene Builder. You can find version 2.0 here: http://www.oracle.com/technetwork/java/javase/downloads/sb2download-2177776.html

Then set your absolute path to the JavaFX Scene Builder in your preferences:

  1. Click on the menu path: Window->Preferences->General->Editors->File Association
  2. Select *.fxml in the "File types:" list on the right hand side
  3. Click the "Add..." button for the "Associated editors:" list.
  4. Click the "External programs" in the "Editor Selection" menu.
  5. Click the "External programs" radio button.
  6. Click the "Browse..." button and Navigate to this path: "C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0". Select the file: JavaFX Scene Builder 2.0.exe
  7. Click the "Open" button.

In the Editor Selection window select the "OK" button.

In the Associated editors: list, select "JavaFX Scene Builder 2.0" and click the "Default" button.

Now you should be good to go!

查看更多
太酷不给撩
7楼-- · 2020-05-19 05:52

Try downloading javafx scene builder from the link:

http://www.oracle.com/technetwork/java/javafxscenebuilder-1x-archive-2199384.html

Then integrate it with your ide by Window>preferences and add a file adssociation as an external program to it.

查看更多
登录 后发表回答