Groovy on JDK9 #unhappy

Getting compiled with jdk9.

Tried using javapackager. No difference in error.

Java invocation:

.\jre\bin\java.exe -Xmx512m ^
 -DsuppressSwingDropSupport=true -Djava.net.preferIPv4Stack=true ^
 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true ^
 -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintClassHistogram ^
 "-XX:ErrorFile=%USERPROFILE%\java_err.txt" "-XX:HeapDumpPath=%USERPROFILE%" ^
 --add-modules java.base,java.xml,java.xml.bind,java.desktop,java.compiler -cp lfclient.jar;commons-lang3-3.2.jar;glazedlists_java15-1.9.0.jar;jfreechart-fse-1.0-SNAPSHOT.jar;jmathplot.jar;jmathio.jar;miglayout-4.0-swing.jar;groovy.jar;groovy-swing.jar;.\ ^
 candela.lanforge.lfclient

Am wondering if there is like something similar to the ‘tools.jar’ that I should be preparing. All of the errors below appear to be from things missing in the java environment.

Loading plugins...
java.lang.ExceptionInInitializerError
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
        at candela.lanforge.GroovyScriptFrame.register(GroovyScriptFrame.java:347)
        at candela.lanforge.GroovyScriptFrame.registerBuiltinPlugins(GroovyScriptFrame.java:225)
        at candela.lanforge.LANforgeMgr$1.run(LANforgeMgr.java:1675)
Caused by: groovy.lang.MissingMethodException: No signature of method: static java.util.regex.Pattern.compile() is applicable for argument types: (java.lang.String) values: [--lfver (\d+\.\d+\.
\d+)]
        at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1503)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1489)
        at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:53)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
        at candela.lanforge.GroovyCheckUpdates.(script14907583229861182367337.groovy:40)
        ... 7 more
1490758323: Free-mem: 146093224 totalMemory: 268435456 maxMemory: 1073741824 mem-space-left: 951399592
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
        at candela.lanforge.GroovyScriptFrame.register(GroovyScriptFrame.java:347)
        at candela.lanforge.GroovyScriptFrame.registerBuiltinPlugins(GroovyScriptFrame.java:225)
        at candela.lanforge.LANforgeMgr$1.run(LANforgeMgr.java:1675)
Caused by: groovy.lang.MissingMethodException: No signature of method: java.lang.String.equalsIgnoreCase() is applicable for argument types: (java.lang.String) values: [gainspeed]
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
        at candela.lanforge.GroovyPortMonitor.(script14907583237002070177117.groovy:35)
        ... 7 more
Advertisements