[SOLVED] Updating Project to Java 11

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
mezing
Posts: 8
Joined: Thu Oct 01, 2015 3:55 am

[SOLVED] Updating Project to Java 11

Post by mezing » Sun Oct 20, 2019 7:36 pm

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();

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6982
Joined: Tue Aug 11, 2009 3:36 am

Re: Updating Project to Java 11

Post by Zoey76 » Sat Dec 28, 2019 11:51 pm

Please try with the latest version since I made several changes.
Using Eclipse 4.16 - OpenJDK14 - MariaDB 10.4 - L2J Server 2.6.2.0

Post Reply