Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Hello
I've been trying to start the Aion Germany Server for a few days.
Source: https://github.com/AionGermany/aion-germany
Unfortunately there is always a problem with JAVA and compiling.
Well: JDK 8 and 7 give me this error:
-Javac not found.
Screenshot: https://drive.google.com/file/d/1-si...BZ2FOZPjz/view
And JDK 17 and 11 give me this error:
- package javax.xml.bind.annotation does not exist
- cannot find symbol
Screenshot: https://drive.google.com/file/d/1gMB...uJC6T1Mve/view
Full Text: https://drive.google.com/file/d/12cO...TOfswYoAu/view
But the Chat & Login Server worksfinde
So my Question: How i can fix it?, Which Java version need it? x86 or x64?
And where the hell is the MySql files? Im to stupid/blind or is that not included?
Im new in this and want to learn to create modificating an own Private Server.
BTW: This emulator works very fine: https://forum.ragezone.com/f587/aion-7-7-a-1195559/
I tested it and It's a very nice work :thumbup1:, but useless for me. But the biggest problem is, the GM-Panel doesn't work because of missing script/handlers. I need the function of the GM-Panal. That is realy important for my project. So im Sorry but every Emuklator without GM-Panal function and lower than V7 is useless for my project.
so I hope you can help to me.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Ok ok, it's solved. I am sorry...
The entry JAVA_HOME and the path were missing in the [System Environment Variables]
But why the entry is not made when installing Java JDK 8 SE is still a mystery to me.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Use Java 1.7 64bit for GameServer
and Java 1.8 64bit for Login e ChatServer.
Yes, there are many things to add to the project.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Quote:
Originally Posted by
Robson26
Use Java 1.7 64bit for GameServer
and Java 1.8 64bit for Login e ChatServer.
Yes, there are many things to add to the project.
Yes. Thanks i noticed that Well, my next problem is, I am now failing with MySQL ... database is executed and ready. But the LS and GS servers cannot find the connection. Although the Config\Database & Network.proberties contain the correct entries.
Quote:
Exception in thread "main" java.lang.Error: DatabaseFactory not initialized! at com.aionemu.commons.database.DatabaseFactory.init(DatabaseFactory.java:106) at com.aionemu.loginserver.LoginServer.main(LoginServer.java:121) Caused by: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/al_server_ls?useUnicode=true&characterEncoding=UTF-8, username = root. Terminating connection pool. Original Exception: ------ com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
MySQL Workbench = OK! (Server status online)
NavaiCat = OK! (Server status online)
CMD = Access Denied (server status online but access is denied despite correct PW.)
Aion (Login Server) = Connection to the database server could not be established.
Im confused...
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Quote:
Originally Posted by
Tarson
Yes. Thanks i noticed that Well, my next problem is, I am now failing with MySQL ... database is executed and ready. But the LS and GS servers cannot find the connection. Although the Config\Database & Network.proberties contain the correct entries.
MySQL Workbench = OK! (Server status online)
NavaiCat = OK! (Server status online)
CMD = Access Denied (server status online but access is denied despite correct PW.)
Aion (Login Server) = Connection to the database server could not be established.
Im confused...
Take a look at this tutorial https://forum.ragezone.com/f588/aion...7-5-a-1073648/
Try to use as base to configure.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
I followed the tutorial, Unfortunately without success.
The error remains the same.
But is the file path right?
I mean i have after the compiling 2 paths.
Example:
Default: 1. "\AL-Login\config\network\database.properties"
Compiled: 2. "\AL-Login\build\dist\AL-Login\config\network.database.properties"
I editing both files.
But which will used?
and the once working BAT is here: "\AL-Login\build\dist\AL-Login\StartLS.bat"
(with the mentioned error.)
other other BAT is located here: "AL-Login\dist\StartLS.bat"
(mainclass com.aionemu.loginserver.Loginserver could not found.)
Im still confused...
A "one click" Launcher for 3 servers is not existing.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Quote:
Originally Posted by
Tarson
I followed the tutorial, Unfortunately without success.
The error remains the same.
But is the file path right?
I mean i have after the compiling 2 paths.
Example:
Default: 1. "\AL-Login\config\network\database.properties"
Compiled: 2. "\AL-Login\build\dist\AL-Login\config\network.database.properties"
I editing both files.
But which will used?
and the once working BAT is here: "\AL-Login\build\dist\AL-Login\StartLS.bat"
(with the mentioned error.)
other other BAT is located here: "AL-Login\dist\StartLS.bat"
(mainclass com.aionemu.loginserver.Loginserver could not found.)
Im still confused...
A "one click" Launcher for 3 servers is not existing.
Use the Compiled: 2. "\AL-Login\build\dist\AL-Login\config\network.database.properties"
Use: StartLoginServer.bat
Configure java here... on StartLoginServer.bat
Quote:
TITLE Aion German - Login Server Console
REM SET PATH="C:\Program Files\Java\jre1.8.0_121\bin"
REM SET PATH="Type here your path to java jdk/jre (including bin folder)."
REM NOTE: Remove tag REM from previous line.
You should fix the build in \aion-germany.git\trunk\AL-Login\build
On line 29, change it: nowarn="off" source="1.7" target="1.7" includeantruntime="false">
for it: nowarn="off" source="1.8" target="1.8" includeantruntime="false">
To compile correctly.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Thanks
Build Folder Deleted and again compiled without issues.
which of the two?
\AL-Login\dist\StartLoginServer.bat
(mainclass com.aionemu.loginserver.Loginserver could not found.)
or
\AL-Login\build\dist\AL-Login\StartLoginServer.bat
(connection to MySQL failed)
but both have the same issues.
and - REM SET PATH="C:\Program Files\Java\jre1.8.0_121\bin" - is already set in both.
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
Quote:
Originally Posted by
Tarson
Thanks
Build Folder Deleted and again compiled without issues.
which of the two?
\AL-Login\dist\StartLoginServer.bat
(mainclass com.aionemu.loginserver.Loginserver could not found.)
or
\AL-Login\build\dist\AL-Login\StartLoginServer.bat
(connection to MySQL failed)
but both have the same issues.
and - REM SET PATH="C:\Program Files\Java\jre1.8.0_121\bin" - is already set in both.
Use the second: ...\AL-Login\build\dist\AL-Login\StartLoginServer.bat
You must add the sql: ...\aion-germany.git\trunk\AL-Login\sql
Sorry!! also use: Compiled: 2. "\AL-Login\build\dist\AL-Login\config\network.database.properties"
Re: Server Build Failed - Java Compiler Failed (Aion Germany v7.8)
hehe, okey!
I tried another thing. I switched the "mysql-connector-java-5.1.34.jar" to "mysql-connector-java-8.0.26.jar"
Now i have htis:
Quote:
21:45:22.076 INFO [main]: - Successfully connected to database
Exception in thread "main" java.lang.Error: sun.misc.InvalidJarIndexException: Invalid index
at com.aionemu.commons.database.dao.DAOManager.init(DAOManager.java:74)
at com.aionemu.loginserver.LoginServer.main(LoginServer.java:122)
Caused by: java.lang.RuntimeException: sun.misc.InvalidJarIndexException: Invalid index
at com.sun.tools.javac.main.Main.compile(Main.java:559)
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
at com.aionemu.commons.scripting.impl.javacompiler.ScriptCompilerImpl.doCompilation(ScriptCompilerImpl.java:179)
at com.aionemu.commons.scripting.impl.javacompiler.ScriptCompilerImpl.compile(ScriptCompilerImpl.java:152)
at com.aionemu.commons.scripting.impl.ScriptContextImpl.init(ScriptContextImpl.java:139)
at com.aionemu.commons.scripting.scriptmanager.ScriptManager.load(ScriptManager.java:100)
at com.aionemu.commons.database.dao.DAOManager.init(DAOManager.java:72)
... 1 more
Maybe It is a version problem. My MYSQL is v8.0, thats why it could't find a connection.
Yea, IDK how to fix Invalid index or i could think the "mysql-connector-java-8.0.26" is incompatible java 8 or 7.
-------------------------------EDIT---------------------------
Alright, the Server is Working. With MySQL v5.1 - v8 was realy to new!
I'm so stupid. I'm sorry.
PIC: Link to: drive.google.com