I’m have a simple JavaFX 15 app (example for a bachelor course) that I’m trying to run in the VNC image (in todolist-example folder in this branch: https://gitlab.stud.idi.ntnu.no/tdt4100/v2021/students/-/tree/todolist-example). I can install Java 14, configure the pom to use Java 14 and run it with Java 14. However, if I switch to Java 15 (install, configure and run) I get the following exception:
java.lang.NoClassDefFoundError: com.sun.glass.ui.Pixels
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:1787)
at java.base/java.lang.System.load(System.java:581)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:214)
Any suggestions?