IntelliJ IDEA fails to launch Gluon Scene Builder
Answered
OS Info:
OS: Manjaro 20.0 Lysia
Kernel: x86_64 Linux 5.4.33-3-MANJARO
Uptime: 22h 12m
Packages: 1418
Shell: bash 5.0.16
Resolution: 3840x1980
DE: KDE 5.69.0 / Plasma 5.18.4
WM: KWin
GTK Theme: Breath-Dark [GTK2/3]
Icon Theme: breath2
Disk: 35G / 104G (36%)
CPU: Intel Core i7-6700HQ @ 8x 3.5GHz [41.0°C]
GPU: Mesa Intel(R) HD Graphics 530 (SKL GT2)
RAM: 5394MiB / 15876MiB
IntelliJ info:
IntelliJ IDEA 2019.3.4 (Community Edition)
Build #IC-193.6911.18, built on March 28, 2020
Runtime version: 11.0.6+10 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Linux 5.4.33-3-MANJARO
GC: ParNew, ConcurrentMarkSweep
Memory: 1917M
Cores: 8
Registry:
Non-Bundled Plugins:
Gluon Info:
Product Version
JavaFX Scene Builder 11.0.0
Build Information
Version 11.0.0
Date: 2019-03-19
Java Version: 11.0.1+13-LTS, Oracle Corporation
Logging
The default configuration stores logging output in a file named scenebuilder-11.0.0.log (possibly followed by a trailing '.' and a digit).
The default file path is /tmp/scenebuilder-11.0.0.log
Java
11.0.1+13-LTS, Oracle Corporation
Operating System
Linux, amd64, 5.4.33-3-MANJARO
Copyright (c) 2015-2018, Gluon.
Java Version:
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10)
OpenJDK 64-Bit Server VM (build 11.0.6+10, mixed mode)
JavaFX Info:
Package: java11-openjfx
Version: 11.0.3u1-1
Build Date: 07/25/2019
Project Build.gradle:
plugins {
id 'application'
id "org.openjfx.javafxplugin" version "0.0.8"
}
group 'edu.iastate.csm'
version '0.1.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
javafx {
version = "14"
modules = ['javafx.controls', 'javafx.fxml']
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
application {
mainClassName = "edu.iastate.csm.Main"
}
MainWindow.fxml:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="edu.iastate.csm.MainWindow"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>
Problem:
When I open MainWindow.fxml in Scene Builder through IntelliJ, I get the following:
java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
Opening in Scene Builder manually (eg. without IntelliJ running) works perfectly fine.
Please sign in to leave a comment.
Could you try to change the current IntelliJ IDEA runtime version to JetBrains Runtime and check it once again? (manual)
Please upload your demo project via HTTPS if the problem persists.
I've tried that. It did not work.
The relevant files are in my above post.
I also have a Main.java and MainWindow.java but they are the default generated files for a JavaFX project.
Here's the About IntelliJ Screen after switching JRE:
And here's the JRE I'm using:
https://aur.archlinux.org/packages/jetbrains-jre/
Last Modified: 04/06/2020
Version 11.0.6b818.2-2
Looks like that
Oracleversion still used for running the IDE.Please try to remove the current IDE installation along with all cache files https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
and download the latest version from our website. The
JBR11version should be used by default.