Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunTime Exception Groovy scripting engine not available. #77

Open
JackWisdom opened this issue Apr 5, 2019 · 5 comments
Open

RunTime Exception Groovy scripting engine not available. #77

JackWisdom opened this issue Apr 5, 2019 · 5 comments

Comments

@JackWisdom
Copy link

JackWisdom commented Apr 5, 2019

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
Copy link
Author

happening in java8 too

@JackWisdom
Copy link
Author

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

@pspeed42
Copy link
Contributor

pspeed42 commented Apr 7, 2019

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
Copy link

louhy commented Jun 12, 2019

@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
Copy link

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!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants