79079660

Date: 2024-10-11 20:39:33
Score: 8.5 🚩
Natty: 4.5
Report link

I'm facing the exact same error. I tried to add a groovy-all.jar file to the classpath in the command line:

java -classpath path\to\groovy-all-2.4.15.jar batch_runner.jar -hl -r -c path\to\batch_configuration.properties

but the error kept the same:

    INFO  17:21:24,232 repast.simphony.batch.gui.HeadlessMain - Writing batch run config file to: C:\Users\14
62639\git\IFMAS\output\config.props
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:7
7)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at repast.simphony.batch.standalone.StandAloneMain.run(StandAloneMain.java:207)
        at repast.simphony.batch.standalone.StandAloneMain.main(StandAloneMain.java:276)
Caused by: java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
        at repast.simphony.batch.gui.HeadlessMain.createAntProject(HeadlessMain.java:87)
        at repast.simphony.batch.gui.HeadlessMain.run(HeadlessMain.java:66)
        at repast.simphony.batch.gui.HeadlessMain.main(HeadlessMain.java:310)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
        ... 9 more

Did you solve the problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the exact same error
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Bruno Henrique