Problem using Lemur

I recently tried using lemur but when I try to load the glass style I get an exception

java.lang.NoClassDefFoundError: groovy/lang/Binding
	at org.codehaus.groovy.jsr223.GroovyScriptEngineFactory.getScriptEngine(
	at java.scripting/javax.script.ScriptEngineManager.lambda$getEngineBy$2(
	at java.base/$3$1.accept(
	at java.base/$WrappingSpliterator.tryAdvance(
	at java.base/$ConcatSpliterator.tryAdvance(
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/$FindOp.evaluateSequential(
	at java.base/
	at java.base/
	at java.scripting/javax.script.ScriptEngineManager.getEngineBy(
	at java.scripting/javax.script.ScriptEngineManager.getEngineByName(
	at mygame.Main.simpleInitApp(
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(
	at java.base/
Caused by: java.lang.ClassNotFoundException: groovy.lang.Binding
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
	at java.base/java.lang.ClassLoader.loadClass(
	... 23 more
1 Like

Do you have groovy-jsr223.jar in the dependencies?

yeah I think so

I have groovy-jsr223-2.1.9.jar

“have” how?

Be sure that it was groovy-jsr223-2.1.9.jar and not

There is a big difference.

How what…?

How do you “have” groovy? You are sitting on it. You put it on the disk somewhere. You referenced it in a build.gradle file?

We are left to guess… and only one of the ways is the way that will work properly.

I put it as a library in IntelliJ

I don’t know if that approach is going to download all of groovy-jsr223-2.1.9.jar's dependencies.

And now that I say it it feels ridiculous

So what would be the right way?

I will let others who use an IDE comment. I just add the dependencies to my build.gradle file and let it work it out. Presumably Intelli-j has a similar mechanism.

Sounds like Ant…? Maybe this would be a good point to start using Gradle.

So instead of adding the jars you use gradle