I just tried jme3 version 3.6.0 and I got an error when starting the app using lwjgl3, I thought it was the compatibility with my jdk. I tried Java 17-18 and the error persists.
SO: Debian-bullseye
[ Error ]
abr. 15, 2023 6:56:35 P. M. com.jme3.system.JmeDesktopSystem initialize
INFORMACIÓN: Running on jMonkeyEngine 3.6.0-stable
* Branch: HEAD
* Git Hash: 53f2a49
* Build Date: 2023-03-20
Exception in thread "jME3 Main" java.lang.ExceptionInInitializerError
at org.lwjgl.Sys.createImplementation(Sys.java:129)
at org.lwjgl.Sys.<clinit>(Sys.java:116)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:220)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.SecurityException: sealing violation: package org.lwjgl is sealed
at java.base/jdk.internal.loader.BuiltinClassLoader.getAndVerifyPackage(BuiltinClassLoader.java:906)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineOrCheckPackage(BuiltinClassLoader.java:877)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.defineOrCheckPackage(ClassLoaders.java:211)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:849)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at org.lwjgl.LWJGLUtil.loadIcon(LWJGLUtil.java:285)
at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:259)
... 4 more
With lwjgl if the application is executed.
...
ext.jmonkeyengineVersion = '3.6.0-stable'
...
runtimeOnly 'org.jmonkeyengine:jme3-lwjgl:' + jmonkeyengineVersion