本文介绍了如何在错误添加SceneBuilder的快捷方式链接后将SceneBuilder添加到Intellij的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我第一次安装了,我错误地链接了快捷方式链接到 FXML 文件并继续收到此错误: IntelliJ无法启动场景构建器。经过大量的搜索后,我无法找到如何重置SceneBuilder。如何在IntelliJ中重置SceneBuilder?

So I installed Intellij for the first time and I mistakenly linked SceneBuilder's shortcut link to the FXML file and keep getting this error: IntelliJ failed to start scene builder. After doing a lot of searching, I could not find out how to reset SceneBuilder. How do I reset SceneBuilder in IntelliJ?

推荐答案

我必须按照此说明查找我需要编辑的文件。 - >

I had to follow this instruction to find the files I needed to edit. -> Instructions

我使用的是Windows 10,因此我使用了< SYSTEM DRIVE> \ Users\< USER ACCOUNT NAME> \。< PRODUCT>< VERSION> 。我的路径看起来像 C:\ Users \yourUserName \ .IdeaIC2017.3 \ config 。接下来,我搜索了scenebulder。结果将我引导到一个名为options的文件和一个名为other的文件。

I use Windows 10 so I used <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>. My path looks like C:\Users\yourUserName\.IdeaIC2017.3\config. Next, I searched for "scenebulder". The results lead me to a file named "options" and a file named "other".

other.xml

other.xml

<application>
  <component name="JavaFxSettings">
    <!-- change here --><option name="pathToSceneBuilder" value="$USER_HOME$/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Gluon/SceneBuilder.lnk" />
    <!-- change here --><option name="myPathToSceneBuilder" value="$USER_HOME$/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Gluon/SceneBuilder.lnk" />
  </component>
</application>

options.xml

options.xml

<application>
  <component name="PropertiesComponent">
    <property name="Default.savedEditorTheme" value="_@user_Default" />
    <property name="installed.kotlin.plugin.version" value="1.2.10-release-IJ2017.3-1" />
    <property name="project.wizard.group" value="JavaFX Application" />
    <property name="project.wizard.template" value="JavaFX Application" />
    <!-- change here --><property name="file.chooser.recent.files" value="$USER_HOME$/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Gluon/SceneBuilder.lnk&#10;C:/Program Files/Java/jdk1.8.0_141" />
    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
    <property name="file.gist.reindex.count" value="641" />
    <property name="lastTip" value="3" />
    <property name="settings.code.style.selected.tab.JAVA" value="Tabs and Indents" />
    <property name="FileTemplates.SelectedTemplate" value="HTML File" />
  </component>
</application>

我找到了SceneBuilder exe所在的位置并更改了两个文件中的路径。

I found where my SceneBuilder exe is located and changed the path in both files.

other.xml

other.xml

<application>
  <component name="JavaFxSettings">
    <!-- change here --><option name="pathToSceneBuilder" value="$USER_HOME$/AppData/Local/SceneBuilder/SceneBuilder.exe" />
    <!-- change here --><option name="myPathToSceneBuilder" value="$USER_HOME$/AppData/Local/SceneBuilder/SceneBuilder.exe" />
  </component>
</application>

options.xml

options.xml

<application>
  <component name="PropertiesComponent">
    <property name="Default.savedEditorTheme" value="_@user_Default" />
    <property name="installed.kotlin.plugin.version" value="1.2.10-release-IJ2017.3-1" />
    <property name="project.wizard.group" value="JavaFX Application" />
    <property name="project.wizard.template" value="JavaFX Application" />
    <!-- change here --><property name="file.chooser.recent.files" value="$USER_HOME$/AppData/Local/SceneBuilder/SceneBuilder.exe&#10;C:/Program Files/Java/jdk1.8.0_141" />
    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
    <property name="file.gist.reindex.count" value="641" />
    <property name="lastTip" value="3" />
    <property name="settings.code.style.selected.tab.JAVA" value="Tabs and Indents" />
    <property name="FileTemplates.SelectedTemplate" value="HTML File" />
  </component>
</application>

最后,我重启IntelliJ并右键点击 FXML 文件并选择在SceneBuilder中打开并且它有效。

Finally, I restarted IntelliJ and right clicked on the FXML file and selected "Open in SceneBuilder" and it worked.

这篇关于如何在错误添加SceneBuilder的快捷方式链接后将SceneBuilder添加到Intellij的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 22:58