简体   繁体   中英

Failed to start scene builder

Whenever I try to open an fxml file with scenebuilder from Intellij it gives me this:

Failed to start SceneBuilder: "C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0"

1

(I've already put in the path to scene builder from settings)

Please do the following steps:

  1. Download and install SceneBuilder from the website (Get the version respected to your Java, so if you use Java 8, then download the Scene Builder for Java 8)

  2. Open IntelliJ -> File menu -> Setting -> Type "Scenebuilder"

  3. Assign the location of SceneBuilder in your local machine to the path (Please find the attached image)

Now you should be able to open the sample.fxml file using scenebuilder

在此处输入图像描述

确保在 Intellij IDEA 设置中指向名为SceneBuilder的可执行文件(在 Gluon 中,它位于opt文件夹下)

Saved Path: C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0\JavaFX Scene Builder 2.0.exe

Solution: Go to the location where the scene builder 2.0 actual file exists and right click->properties->compatibility-> uncheck run as administrator. Done

1.Download and install the latest version of Scene Builder.

2.In the Settings/Preferences dialog Ctrl+Alt+S , select Languages and Frameworks | JavaFX .

Look at this

3.Click the Browse button in the Path to SceneBuilder field.

4.In the dialog that opens, select the Scene Builder application (executable file) on your computer and click OK.

Example

5.Apply the changes and close the dialog.

if u have error like "Failed to open file in scenebuilder Download JavaFX"

connect to internet and click on Download JavaFX. It will download some files for couple of seconds and after that scenebuilder will run properly.

NOTE: I used java 11

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM