Error opening scene builder

前端 未结 10 1744
抹茶落季
抹茶落季 2021-02-01 17:11

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:



        
相关标签:
10条回答
  • 2021-02-01 17:45

    Java FX Scene Builder is not part of the Java SDK nor the e(fx)clipse plugin. It's an external tool that you have to download and install separatly. Java FX Scene Builder is part of the Java Archive, if link doesn't work, you'll probably find a link to the Archive at the bottom of the Java Download page, and find it from there.

    After installation, the cleanest way is to set the path under Window > Preferences > JavaFX

    (on Windows, browse and select C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0\JavaFX Scene Builder 2.0.exe as executable).

    This will render the context menu option "Open with SceneBuilder" operational on *.fxml files.

    Unfortunately this doesn't add SceneBuilder as an internal editor or external program, so if you want the file associations, you'll still have to browse for your external program int the file association dialog under Window > Preferences > General > Editors > File Associations. You can choose *.fxml, and add an associated editor, choosing "External programs" and browsing for the above mentionned executable.

    0 讨论(0)
  • 2021-02-01 17:53
    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

    0 讨论(0)
  • 2021-02-01 17:59

    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!

    0 讨论(0)
  • 2021-02-01 17:59

    I was getting the same error:

    The way I solved it is by me going to (on Mac) Eclipse/Preferences/JavaFX 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.

    0 讨论(0)
  • 2021-02-01 18:00

    This could as easy as you have missed installing the Scene Builder for the JavaFx. By installing only the JavaFx from the eclipse market is not enough you have to manuall follow that above link of scene builder and download the softare and after installation just check again it will definatelly work now!

    This thing worked in my Case :)

    0 讨论(0)
  • 2021-02-01 18:02

    Set the SceneBuilder executable path in the JavaFX of your Eclipse IDE as the following:

    1. Window -> Preferences -> JavaFX
    2. Click "Browse" and navigate to the JavaFXSceneBuilder2.0 bash file (linux) or JavaFXSceneBuilder2.0.exe (windows) like the following:

      Windows: C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0

      Linux: /opt/JavaFXSceneBuilder2.0/JavaFXSceneBuilder2.0

    0 讨论(0)
提交回复
热议问题