Error opening scene builder

前端 未结 10 1967
抹茶落季
抹茶落季 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.

提交回复
热议问题