Page 1 of 1

Updating Project to Java 11

Posted: Sun Oct 20, 2019 7:36 pm
by mezing
Hello, I'm trying to update my l2jserver to java 11 and it's ok, I can compile and no error in eclipse but when console begin to load the scripts, this msg appears and stop to loading. Why is this?.

Code: Select all

Exception in thread "main" org.mdkt.compiler.CompilationException: Unable to compile the source
[kind=ERROR, line=1, message='.' expected]
[kind=ERROR, line=2, message=';' expected]
[kind=ERROR, line=2, message='.' expected]
[kind=ERROR, line=3, message=';' expected]
[kind=ERROR, line=3, message='.' expected]
[kind=ERROR, line=4, message=';' expected]
[kind=ERROR, line=4, message='.' expected]
[kind=ERROR, line=5, message=';' expected]
[kind=ERROR, line=5, message='.' expected]
[kind=ERROR, line=6, message=';' expected]
[kind=ERROR, line=6, message='.' expected]
[kind=ERROR, line=7, message=';' expected]
[kind=ERROR, line=7, message='.' expected]
[kind=ERROR, line=7, message=';' expected]
[kind=ERROR, line=8, message='.' expected]
[kind=ERROR, line=9, message=';' expected]
[kind=ERROR, line=9, message='.' expected]
[kind=ERROR, line=10, message=';' expected]
[kind=ERROR, line=10, message='.' expected]
[kind=ERROR, line=11, message=';' expected]
[kind=ERROR, line=11, message='.' expected]
[kind=ERROR, line=12, message=';' expected]
[kind=ERROR, line=12, message='.' expected]
[kind=ERROR, line=13, message=';' expected]
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=15, message=illegal character: '#']
[kind=ERROR, line=16, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=17, message=illegal character: '#']
[kind=ERROR, line=18, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
[kind=ERROR, line=19, message=illegal character: '#']
        at org.mdkt.compiler.InMemoryJavaCompiler.compileAll(InMemoryJavaCompiler.java:106)
        at com.l2jserver.gameserver.scripting.ScriptEngineManager.executeScriptList(ScriptEngineManager.java:132)
        at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:307)
        at com.l2jserver.gameserver.GameServer.main(GameServer.java:616)
Line number 132 of ScriptEngineManager

Code: Select all

final Map<String, Class<?>> classes = COMPILER.compileAll();

Re: Updating Project to Java 11

Posted: Sat Dec 28, 2019 11:51 pm
by Zoey76
Please try with the latest version since I made several changes.