Compiler help for 7.5 !

Results 1 to 2 of 2
  1. #1
    Apprentice Celodrix is offline
    MemberRank
    Mar 2020 Join Date
    5Posts

    Compiler help for 7.5 !

    Hi there, so I have a problem starting the database.

    I used this emulator : https://github.com/AionGermany/aion-germany#readme

    Configured all over with hamachi IP and SQL Password.
    Created database in navicat.

    I compiled Login and Chat with jdk version 8.
    And gameserver with jdk 7.

    Login and Chat starts corectly but my problem is at the database [AL-Game].

    It shows me some kind of error which I don't know how to solve it, if anyone knows even a bit of what would be.

    Code:
    =============================[  ### DataBase ###  ]=============================
    
    02:35:37.212 INFO [main]: - Successfully connected to database
    02:35:38.325 ERROR[main]: - Java Compiler ERROR: cannot find symbol
    symbol  : constructor Item(int,int,long,int,int,java.lang.String,int,int,boolean,boolean,long,int,int,int,int,int,int,int,int,int,int,int,boolean,boolean,int,int,boolean,boolean,int,int)
    location: class com.aionemu.gameserver.model.gameobjects.Item
    Source: /D:/Installs/Servers/Aion/SFiles/Unpacked/7.5/AL-Game/build/dist/AL-Game/./data/scripts/system/database/mysql5/MySQL5BrokerDAO.java
    Line: 127
    Column: 57
    02:35:38.373 ERROR[main]: - Java Compiler ERROR: cannot find symbol
    symbol  : constructor Item(int,int,long,int,int,java.lang.String,int,int,boolean,boolean,long,int,int,int,int,int,int,int,int,int,int,int,boolean,boolean,int,int,boolean,boolean,int,int)
    location: class com.aionemu.gameserver.model.gameobjects.Item
    Source: /D:/Installs/Servers/Aion/SFiles/Unpacked/7.5/AL-Game/build/dist/AL-Game/./data/scripts/system/database/mysql5/MySQL5InventoryDAO.java
    Line: 253
    Column: 29
    02:35:38.393 ERROR[main]: - Java Compiler ERROR: cannot find symbol
    symbol  : constructor Item(int,int,long,int,int,java.lang.String,int,int,boolean,boolean,int,int,int,int,int,int,int,int,int,int,int,int,boolean,boolean,int,int,boolean,boolean,int,int)
    location: class com.aionemu.gameserver.model.gameobjects.Item
    Source: /D:/Installs/Servers/Aion/SFiles/Unpacked/7.5/AL-Game/build/dist/AL-Game/./data/scripts/system/database/mysql5/MySQL5LegionDAO.java
    Line: 610
    Column: 53
    02:35:38.399 ERROR[main]: - Java Compiler ERROR: cannot find symbol
    symbol  : constructor Item(int,int,long,int,int,java.lang.String,int,int,boolean,boolean,int,int,int,int,int,int,int,int,int,int,int,int,boolean,boolean,int,int,boolean,boolean,int,int)
    location: class com.aionemu.gameserver.model.gameobjects.Item
    Source: /D:/Installs/Servers/Aion/SFiles/Unpacked/7.5/AL-Game/build/dist/AL-Game/./data/scripts/system/database/mysql5/MySQL5MailDAO.java
    Line: 199
    Column: 53
    02:35:38.451 ERROR[main]: - Critical Error - Thread: main terminated abnormaly: java.lang.Error: Error while compiling classes
    java.lang.Error: Error while compiling classes
            at com.aionemu.commons.database.dao.DAOManager.init(DAOManager.java:79) ~[al-commons.jar:na]
            at com.aionemu.gameserver.GameServer.initUtilityServicesAndConfig(GameServer.java:481) ~[AL-Game.jar:na]
            at com.aionemu.gameserver.GameServer.main(GameServer.java:231) ~[AL-Game.jar:na]
    Caused by: java.lang.RuntimeException: Error while compiling classes
            at com.aionemu.commons.scripting.impl.javacompiler.ScriptCompilerImpl.doCompilation(ScriptCompilerImpl.java:198) ~[al-commons.jar:na]
            at com.aionemu.commons.scripting.impl.javacompiler.ScriptCompilerImpl.compile(ScriptCompilerImpl.java:167) ~[al-commons.jar:na]
            at com.aionemu.commons.scripting.impl.ScriptContextImpl.init(ScriptContextImpl.java:147) ~[al-commons.jar:na]
            at com.aionemu.commons.scripting.scriptmanager.ScriptManager.load(ScriptManager.java:105) ~[al-commons.jar:na]
            at com.aionemu.commons.database.dao.DAOManager.init(DAOManager.java:77) ~[al-commons.jar:na]
            ... 2 common frames omitted
    I'm using JDK 7 and 8.
    And I'm using client 7.6 original from gameforge.

    If I start the client in this state, I can connect in the login screen, [creates account automaticaly, but server is down tho.]


  2. #2
    Apprentice Celodrix is offline
    MemberRank
    Mar 2020 Join Date
    5Posts

    Re: Compiler help for 7.5 !

    So, I figured that my problem isn't java version. Is from the variables I add. If I add the jdk 7u51 variable to start gameserver it works. If I change the variable from 7u51 to jdk8 variable to start Login and Chat it works. But if I save it as jdk 8, GS won't start. Is there a way I could just add more JAVA_Home and PATHS variables? because Login and Chat starts only if I have jdk 8 added and GS only if jdk 7 is added.

    - - - Updated - - -

    Solved, I forced every start file to use the correct java version with SET PATH at the start of each one.



Advertisement