jMonkeyEngine-Contributions / Lemur

Lemur is a jMonkeyEngine-based UI toolkit.
http://jmonkeyengine-contributions.github.io/Lemur/
BSD 3-Clause "New" or "Revised" License
116 stars 32 forks source link

RunTime Exception Groovy scripting engine not available. #77

Open JackWisdom opened 5 years ago

JackWisdom commented 5 years ago

my build.gradle https://pastebin.com/YjWa1Jih my project https://github.com/mcqwzd/OurCraft exception https://pastebin.com/QMqJLUEf Java OpenJDK Runtime Environment (build 11.0.2-redhat+7-LTS) System Win10 1809 Groovy 3.0

it just happening as the game launched I'm pretty sure that I have installed groovy the GROOVY_HOME was set and I can normally groovy cmds in powershell

JackWisdom commented 5 years ago

happening in java8 too

JackWisdom commented 5 years ago

System.out.println(new ScriptEngineManager().getEngineByName("groovy")==null); returns true can i get support here?

pspeed42 commented 5 years ago

Sorry you are having trouble.

This error indicates that you do not have the groovy-all jar in your classpath when you run. I don't know how your are running so I can't really comment on that for sure.

Sometimes support questions get lost here as I get a lot of github e-mails but there is a Lemur section of the JME forum and those always get seen soonest.

The "implementation" scope is new to me as I'm still using an older version of gradle. I wonder if this is preventing the groovy-all.jar from showing up in 'runtime'... you can probably look at the generated script that the application plugin generates to see what jars were included.

louhy commented 5 years ago

@JackWisdom
Try removing that , ext: 'pom' bit.

This works for me but your groovy dependency doesn't, unless I remove the "pom". implementation 'org.codehaus.groovy:groovy-all:2.4.15'

woodx319 commented 1 year ago

This error indicates that you do not have the groovy-all jar in your classpath when you run.

this just helped me out. thank you!!