简体   繁体   English

无法启动场景构建器

[英]Failed to start scene builder

Whenever I try to open an fxml file with scenebuilder from Intellij it gives me this:每当我尝试使用 Intellij 的 scenebuilder 打开一个 fxml 文件时,它都会给我这个:

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)网站下载并安装SceneBuilder (获取适用于您的 Java 的版本,因此如果您使用 Java 8,请下载适用于 Java 8 的 Scene Builder)

  2. Open IntelliJ -> File menu -> Setting -> Type "Scenebuilder"打开 IntelliJ -> 文件菜单 -> 设置 -> 键入“Scenebuilder”

  3. Assign the location of SceneBuilder in your local machine to the path (Please find the attached image)将本地机器中 SceneBuilder 的位置分配给路径(请查找附图)

Now you should be able to open the sample.fxml file using scenebuilder现在您应该可以使用scenebuilder打开sample.fxml文件

在此处输入图像描述

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

Saved Path: C:\Program Files (x86)\Oracle\JavaFX Scene Builder 2.0\JavaFX Scene Builder 2.0.exe保存路径: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.解决方法:进入scene builder 2.0实际文件所在的位置,右键->属性->兼容性->取消勾选以管理员身份运行。 Done完毕

1.Download and install the latest version of Scene Builder. 1.下载并安装最新版本的Scene Builder。

2.In the Settings/Preferences dialog Ctrl+Alt+S , select Languages and Frameworks | 2.在设置/首选项对话框中Ctrl+Alt+S ,选择语言和框架| JavaFX . JavaFX

Look at this看这个

3.Click the Browse button in the Path to SceneBuilder field. 3.单击“场景生成器路径”字段中的“浏览”按钮。

4.In the dialog that opens, select the Scene Builder application (executable file) on your computer and click OK. 4.在打开的对话框中,选择您计算机上的 Scene Builder 应用程序(可执行文件),然后单击确定。

Example例子

5.Apply the changes and close the dialog. 5.应用更改并关闭对话框。

if u have error like "Failed to open file in scenebuilder Download JavaFX"如果您有“无法在scenebuilder下载JavaFX中打开文件”之类的错误

connect to internet and click on Download JavaFX.连接到 Internet 并单击下载 JavaFX。 It will download some files for couple of seconds and after that scenebuilder will run properly.它将下载一些文件几秒钟,然后场景构建器将正常运行。

NOTE: I used java 11注意:我使用了 java 11

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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