Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scene Builder not opening within IntelliJ Idea Community Edition

I am trying to open an FXML file using Scene Builder that is within IntelliJ. However, I get an error message despite that I can open the FXML file with Scene Builder alone.

The display only shows this error message

java.lang.ClassNotFoundException: com.sun.javafx.fxml.LoadListener PluginClassLoader[org.jetbrains.plugins.javaFX, 192.5728.98] com.intellij.ide.plugins.cl.PluginClassLoader@7db2b6a4

java.lang.NoClassDefFoundError: com/sun/javafx/fxml/LoadListener

com.intellij.diagnostic.PluginException: While loading class com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader: com/sun/javafx/fxml/LoadListener [Plugin: org.jetbrains.plugins.javaFX][!

IntelliJ error message

like image 432
kebaranas Avatar asked Jul 28 '19 03:07

kebaranas


People also ask

How do I get Scene Builder in IntelliJ?

Download and install the latest version of Scene Builder. In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Languages & Frameworks | JavaFX. in the Path to SceneBuilder field. In the dialog that opens, select the Scene Builder application (executable file) on your computer and click OK.

Where is Scene Builder installed?

By default, the JavaFXJavaFXJavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.https://docs.oracle.com › javafx › overview › jfxpub-overviewWhat Is JavaFX? | JavaFX 2 Tutorials and Documentation Scene Builder software is installed at C:\Program Files\Oracle\JavaFX Scene Builder 1.0 on a Windows platform. If you install a 32-bit version of the JavaFX Scene Builder on a 64-bit Windows machine, the default installation location is C:\Program Files (x86)\Oracle\JavaFX Scene Builder 1.0.


2 Answers

It's a known issue.

As a workaround you can try switching IntelliJ IDEA runtime to version 8.

like image 170
CrazyCoder Avatar answered Oct 07 '22 21:10

CrazyCoder


Hey I have found a solution. Just install scenebuilder and open the scenebuilder app. Then open your project .fxml file. Now when u save your work in scenebuilder app, the changes will be saved to your project.

like image 39
Bushra Avatar answered Oct 07 '22 20:10

Bushra