[Solved] The type com.l2jserver.mmocore.MMOClient cannot be resolved.
Posted: Sat Nov 05, 2016 12:57 am
Hey,
I put the l2j_datapack into Eclipse and got one error in l2j_datapack\dist\game\data\scripts\handlers\admincommandhandlers\AdminEditChar.java
The same problem happens several times and is contained in lines such as this :
String ip = "0.0.0.0";
[...]
ip = client.getConnection().getInetAddress().getHostAddress();
Eclipse says The method getConnection() is undefined for the type L2GameClient.
When I read the com/l2jserver/gameserver/network/L2GameClient.java class no getConnection() method is defined. But getConnection() is sometimes used, as com.l2jserver.mmocore.MMOClient.getConnection(), or as com.l2jserver.commons.database.pool.IConnectionFactory.getConnection(), two very different classes.
Which one should I try to use to solve my problem in AdminEditChar.java ?
Plus in com/l2jserver/ I have no mmocore package. What is it, and where can I download it ? The weird thing is, the mmocore seems to be very important but I have no error at all in my l2j_server project, although this package doesn't exist.
I put the l2j_datapack into Eclipse and got one error in l2j_datapack\dist\game\data\scripts\handlers\admincommandhandlers\AdminEditChar.java
The same problem happens several times and is contained in lines such as this :
String ip = "0.0.0.0";
[...]
ip = client.getConnection().getInetAddress().getHostAddress();
Eclipse says The method getConnection() is undefined for the type L2GameClient.
When I read the com/l2jserver/gameserver/network/L2GameClient.java class no getConnection() method is defined. But getConnection() is sometimes used, as com.l2jserver.mmocore.MMOClient.getConnection(), or as com.l2jserver.commons.database.pool.IConnectionFactory.getConnection(), two very different classes.
Which one should I try to use to solve my problem in AdminEditChar.java ?
Plus in com/l2jserver/ I have no mmocore package. What is it, and where can I download it ? The weird thing is, the mmocore seems to be very important but I have no error at all in my l2j_server project, although this package doesn't exist.