[Solved] Package org.lwjgl is sealed

just installed the new version of jmonkey SDK, but on gradle projects I get:

apr 17, 2023 6:26:02 PM com.jme3.system.JmeSystemDelegate lambda$new$1
AVVERTENZA: JmeDialogsFactory implementation not found.
apr 17, 2023 6:26:02 PM com.jme3.system.JmeDesktopSystem initialize
INFORMAZIONI: 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

which doesn’t happen on ant projects
sorry, maybe this question has already been asked in 2018 but I’m quite confused

[EDIT]
i’m on linux

Maybe this is useful from a day or two ago:

oh, yes, sorry, Thank you very much,Thank you very much, is it possible to make my useless question disappear?

It’s not necessarily a useless question as your title is better in my opinion.

Up to you. I think you can self-delete but maybe not now that there are responses.

Edit: if the other post solved your issue then you could at least edit the title of this one and put [Solved] in front of it.

2 Likes