I’m still a newbie, and I’m still struggling with things which are probably obvious.
But if I don’t have lwjgl3 explicitly on my classpath I get
cc.journeyman.simulated-genetics.launcher=> (start app)
May 10, 2024 7:52:11 PM com.jme3.system.JmeSystemDelegate lambda$new$1
WARNING: JmeDialogsFactory implementation not found.
May 10, 2024 7:52:11 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.6.1-stable
* Branch: HEAD
* Git Hash: 4de10c3
* Build Date: 2023-06-23
May 10, 2024 7:52:11 PM com.jme3.system.JmeDesktopSystem newContextLwjgl
SEVERE: CRITICAL ERROR: Context class is missing!
Make sure jme3_lwjgl-ogl is on the classpath.
java.lang.ClassNotFoundException: com.jme3.system.lwjgl.LwjglDisplay
and if I do, I get
cc.journeyman.simulated-genetics.launcher=> May 21, 2024 2:00:38 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.ExceptionInInitializerError
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
at org.lwjgl.system.Callback.<clinit>(Callback.java:40)
at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:231)
at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:588)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:710)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.UnsupportedOperationException: java.lang.SecurityException: sealing violation: can't seal package org.lwjgl: already defined
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:130)
... 6 more
Caused by: java.lang.SecurityException: sealing violation: can't seal package org.lwjgl: already defined
Exploring further, I’m cribbing from the examples in @ertugrulcetin’s [jme-clj](https://github.com/ertugrulcetin/jme-clj/) repository, specifically this one. @ertugrulcetin’s dependencies are as follows:
I had tried to upgrade jme-version to 3.6.1-stable, but this failed because
jme3-lwjgl-3.6.1-stable.pom references lwjgl, and
both jme3-lwjgl-3.6.1-stable.pom and lwjgl/2.9.5/lwjgl-2.9.5.pom reference lwjgl-platform; but
although the POM for lwjgl-platform-2.9.5 exists in public repositories, there’s no related JAR file (and actually the manifest in the POM does not advertise that there will be).
I found this apparently-related query, and tried the recommended fix of specifying JME version 3.7.0-SNAPSHOT; that did not exist in public repos, but 3.7.0-beta1 did. However, I then saw
Exception in thread "jME3 Main" java.lang.NoClassDefFoundError: com/jme3/system/NativeLibraries
This query appeared relevant, so I added the jbullet dependency, but the stack-alloc.jar file doesn’t exist in the 3.7 branch of the git repository; so for the time being I’m once again stuck.
OK, if I reset all JME3 dependency versions to 3.3.2, I get no further errors. Attempting to load a .glb file created with @sgold’s Maud results in an instance of com.jme3.scene.Node being created, and although I’m not yet seeing it in the scene (possibly because of lighting problems?), I think this problem is mostly resolved.
I’d like to get to the point I can use current stable JME libraries with jme-clj, but that’s a separate problem!
Yes thats what I thought it was. Using 2 and 3 at the same time. So when I add code from the wiki it works. Then I change it to use my assets instead once I know it works.