Compiling In Eclipse Error

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
User avatar
Asmodaius
Posts: 170
Joined: Sun Jul 16, 2006 9:43 am

Compiling In Eclipse Error

Post by Asmodaius » Sat Nov 06, 2021 11:07 am

I was trying to compile the latest fork in Eclipse and I got these errors in Gradle build process.
Any help would be appreciated.

l2j-server-datapack

Code: Select all

Working Directory: C:\Users\_\git\l2j-server-datapack
Gradle user home: C:\Users\_\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 6.8
Java Home: C:\Program Files\Java\jdk-14.0.2
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: build

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find com.l2jserver:l2j-server-game:2.6.2.0.
     Searched in the following locations:
       - file:/C:/Users/_/.m2/repository/com/l2jserver/l2j-server-game/2.6.2.0/l2j-server-game-2.6.2.0.pom
       - https://repo.maven.apache.org/maven2/com/l2jserver/l2j-server-game/2.6.2.0/l2j-server-game-2.6.2.0.pom
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 485ms
1 actionable task: 1 executed

l2j-server-login

Code: Select all

Working Directory: C:\Users\_\git\l2j-server-login
Gradle user home: C:\Users\_\.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 6.8
Java Home: C:\Program Files\Java\jdk-14.0.2
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: build


> Task :compileJava FAILED
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:21: error: cannot access BaseSendablePacket
import com.l2jserver.commons.network.BaseSendablePacket;
                                    ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/network/BaseSendablePacket.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:38: error: cannot access ServerNameDAO
import com.l2jserver.commons.dao.ServerNameDAO;
                                ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/dao/ServerNameDAO.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:40: error: cannot access NewCrypt
import com.l2jserver.commons.security.crypt.NewCrypt;
                                           ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/security/crypt/NewCrypt.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:41: error: cannot access Util
import com.l2jserver.commons.util.Util;
                                 ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/util/Util.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:35: error: cannot access ConnectionFactory
import com.l2jserver.commons.database.ConnectionFactory;
                                     ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/database/ConnectionFactory.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:36: error: cannot access Rnd
import com.l2jserver.commons.util.Rnd;
                                 ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/util/Rnd.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\L2JGameServerPacketHandler.java:26: error: cannot access BaseRecievePacket
import com.l2jserver.commons.network.BaseRecievePacket;
                                    ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/network/BaseRecievePacket.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:27: error: cannot find symbol
public class LoginServerFail extends BaseSendablePacket {
                                     ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:71: error: cannot find symbol
	private NewCrypt _blowfish;
	        ^
  symbol:   class NewCrypt
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:215: error: cannot find symbol
	public void sendPacket(BaseSendablePacket sl) {
	                       ^
  symbol:   class BaseSendablePacket
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:301: error: cannot find symbol
	public void SetBlowFish(NewCrypt blowfish) {
	                        ^
  symbol:   class NewCrypt
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\L2JGameServerPacketHandler.java:57: error: cannot find symbol
	public static BaseRecievePacket handlePacket(byte[] data, GameServerThread server) {
	              ^
  symbol:   class BaseRecievePacket
  location: class L2JGameServerPacketHandler
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:49: error: cannot find symbol
	private static final NewCrypt _STATIC_CRYPT = new NewCrypt(STATIC_BLOWFISH_KEY);
	                     ^
  symbol:   class NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:50: error: cannot find symbol
	private NewCrypt _crypt = null;
	        ^
  symbol:   class NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginServer.java:34: error: cannot access UPnPService
import com.l2jserver.commons.UPnPService;
                            ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/UPnPService.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\BlowFishKey.java:39: error: cannot find symbol
public class BlowFishKey extends BaseRecievePacket {
                                 ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangeAccessLevel.java:33: error: cannot find symbol
public class ChangeAccessLevel extends BaseRecievePacket {
                                       ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:41: error: cannot find symbol
public class ChangePassword extends BaseRecievePacket {
                                    ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:59: error: cannot find symbol
public class GameServerAuth extends BaseRecievePacket {
                                    ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\PlayerAuthRequest.java:32: error: cannot find symbol
public class PlayerAuthRequest extends BaseRecievePacket {
                                       ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\PlayerInGame.java:36: error: cannot find symbol
public class PlayerInGame extends BaseRecievePacket {
                                  ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\PlayerLogout.java:36: error: cannot find symbol
public class PlayerLogout extends BaseRecievePacket {
                                  ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\PlayerTracert.java:29: error: cannot find symbol
public class PlayerTracert extends BaseRecievePacket {
                                   ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ReplyCharacters.java:29: error: cannot find symbol
public class ReplyCharacters extends BaseRecievePacket {
                                     ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\RequestSendMail.java:28: error: cannot find symbol
public class RequestSendMail extends BaseRecievePacket {
                                     ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\RequestTempBan.java:33: error: cannot find symbol
public class RequestTempBan extends BaseRecievePacket {
                                    ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ServerStatus.java:31: error: cannot find symbol
public class ServerStatus extends BaseRecievePacket {
                                  ^
  symbol: class BaseRecievePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\AuthResponse.java:28: error: cannot find symbol
public class AuthResponse extends BaseSendablePacket {
                                  ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\ChangePasswordResponse.java:27: error: cannot find symbol
public class ChangePasswordResponse extends BaseSendablePacket {
                                            ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\InitLS.java:36: error: cannot find symbol
public class InitLS extends BaseSendablePacket {
                            ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\KickPlayer.java:27: error: cannot find symbol
public class KickPlayer extends BaseSendablePacket {
                                ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\PlayerAuthResponse.java:27: error: cannot find symbol
public class PlayerAuthResponse extends BaseSendablePacket {
                                        ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\RequestCharacters.java:27: error: cannot find symbol
public class RequestCharacters extends BaseSendablePacket {
                                       ^
  symbol: class BaseSendablePacket
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\SelectorHelper.java:30: error: cannot access IPv4Filter
import com.l2jserver.commons.util.IPv4Filter;
                                 ^
  bad class file: C:\Users\_\.gradle\caches\modules-2\files-2.1\org.bitbucket.l2jserver\l2j-server-commons\2.6.5.1\333571d2f8984edaff5d1adb334e7752bf84c3f\l2j-server-commons-2.6.5.1.jar(/com/l2jserver/commons/util/IPv4Filter.class)
    class file has wrong version 60.0, should be 58.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\SelectorHelper.java:51: error: cannot find symbol
	private final IPv4Filter _ipv4filter;
	              ^
  symbol:   class IPv4Filter
  location: class SelectorHelper
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:46: error: cannot find symbol
		writeC(0x01);
		^
  symbol:   method writeC(int)
  location: class LoginServerFail
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:47: error: cannot find symbol
		writeC(reason);
		^
  symbol:   method writeC(int)
  location: class LoginServerFail
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:50: error: method does not override or implement a method from a supertype
	@Override
	^
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\loginserverpackets\LoginServerFail.java:52: error: cannot find symbol
		return getBytes();
		       ^
  symbol:   method getBytes()
  location: class LoginServerFail
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:78: error: cannot find symbol
		try (var con = ConnectionFactory.getInstance().getConnection();
		               ^
  symbol:   variable ConnectionFactory
  location: class GameServerTable
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:125: error: cannot find symbol
			for (Integer serverId : ServerNameDAO.getServers().keySet()) {
			                        ^
  symbol:   variable ServerNameDAO
  location: class GameServerTable
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:169: error: cannot find symbol
		try (var con = ConnectionFactory.getInstance().getConnection();
		               ^
  symbol:   variable ConnectionFactory
  location: class GameServerTable
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:185: error: cannot find symbol
		return _keyPairs[Rnd.nextInt(10)];
		                 ^
  symbol:   variable Rnd
  location: class GameServerTable
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerTable.java:277: error: cannot find symbol
			return ServerNameDAO.getServer(_id);
			       ^
  symbol:   variable ServerNameDAO
  location: class GameServerInfo
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\L2JGameServerPacketHandler.java:58: error: cannot find symbol
		BaseRecievePacket msg = null;
		^
  symbol:   class BaseRecievePacket
  location: class L2JGameServerPacketHandler
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:128: error: cannot find symbol
				checksumOk = NewCrypt.verifyChecksum(data);
				             ^
  symbol:   variable NewCrypt
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:135: error: cannot find symbol
					LOG.warn("[C]" + System.lineSeparator() + Util.printData(data));
					                                          ^
  symbol:   variable Util
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:141: error: cannot find symbol
			final var serverName = (getServerId() != -1 ? "[" + getServerId() + "] " + ServerNameDAO.getServer(getServerId()) : "(" + _connectionIPAddress + ")");
			                                                                           ^
  symbol:   variable ServerNameDAO
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:148: error: cannot find symbol
				LOG.info("Server {}[{}] is now disconnected.", ServerNameDAO.getServer(getServerId()), getServerId());
				                                               ^
  symbol:   variable ServerNameDAO
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:210: error: cannot find symbol
		_blowfish = new NewCrypt("_;v.]05-31!|+-%xT!^[$\00");
		                ^
  symbol:   class NewCrypt
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:218: error: cannot find symbol
			NewCrypt.appendChecksum(data);
			^
  symbol:   variable NewCrypt
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:220: error: cannot find symbol
				LOG.info("[S] {}:{}{}", sl.getClass().getSimpleName(), System.lineSeparator(), Util.printData(data));
				                                                                               ^
  symbol:   variable Util
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\GameServerThread.java:255: error: cannot find symbol
		LOG.info("Updated game server {}[{}] IP's.", ServerNameDAO.getServer(getServerId()), getServerId());
		                                             ^
  symbol:   variable ServerNameDAO
  location: class GameServerThread
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:128: error: cannot find symbol
				_blowfishKeys[i][j] = (byte) (Rnd.nextInt(255) + 1);
				                              ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:141: error: cannot find symbol
		key = new SessionKey(Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt());
		                     ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:141: error: cannot find symbol
		key = new SessionKey(Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt());
		                                    ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:141: error: cannot find symbol
		key = new SessionKey(Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt());
		                                                   ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:141: error: cannot find symbol
		key = new SessionKey(Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt());
		                                                                  ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:183: error: cannot find symbol
			try (var con = ConnectionFactory.getInstance().getConnection();
			               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:211: error: cannot find symbol
			try (var con = ConnectionFactory.getInstance().getConnection();
			               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:368: error: cannot find symbol
				try (var con = ConnectionFactory.getInstance().getConnection();
				               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:383: error: cannot find symbol
		try (var con = ConnectionFactory.getInstance().getConnection();
		               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:394: error: cannot find symbol
		try (var con = ConnectionFactory.getInstance().getConnection();
		               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:428: error: cannot find symbol
		return _keyPairs[Rnd.nextInt(10)];
		                 ^
  symbol:   variable Rnd
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:441: error: cannot find symbol
			try (var con = ConnectionFactory.getInstance().getConnection();
			               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginController.java:476: error: cannot find symbol
			try (var con = ConnectionFactory.getInstance().getConnection();
			               ^
  symbol:   variable ConnectionFactory
  location: class LoginController
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\L2LoginClient.java:91: error: cannot find symbol
		_sessionId = Rnd.nextInt();
		             ^
  symbol:   variable Rnd
  location: class L2LoginClient
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:49: error: cannot find symbol
	private static final NewCrypt _STATIC_CRYPT = new NewCrypt(STATIC_BLOWFISH_KEY);
	                                                  ^
  symbol:   class NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:58: error: cannot find symbol
		_crypt = new NewCrypt(key);
		             ^
  symbol:   class NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:78: error: cannot find symbol
		return NewCrypt.verifyChecksum(raw, offset, size);
		       ^
  symbol:   variable NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:103: error: cannot find symbol
			NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt());
			^
  symbol:   variable NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:103: error: cannot find symbol
			NewCrypt.encXORPass(raw, offset, size, Rnd.nextInt());
			                                       ^
  symbol:   variable Rnd
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\security\crypt\LoginCrypt.java:112: error: cannot find symbol
			NewCrypt.appendChecksum(raw, offset, size);
			^
  symbol:   variable NewCrypt
  location: class LoginCrypt
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginServer.java:75: error: cannot find symbol
		ConnectionFactory.builder() //
		^
  symbol:   variable ConnectionFactory
  location: class LoginServer
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\LoginServer.java:146: error: cannot find symbol
			UPnPService.getInstance().load(server().getPort(), "L2J Login Server");
			^
  symbol:   variable UPnPService
  location: class LoginServer
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\status\Status.java:51: error: cannot find symbol
			_statusPw = Util.randomPassword(10);
			            ^
  symbol:   variable Util
  location: class Status
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\mail\BaseMail.java:111: error: cannot find symbol
		try (var con = ConnectionFactory.getInstance().getConnection();
		               ^
  symbol:   variable ConnectionFactory
  location: class BaseMail
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\BlowFishKey.java:45: error: cannot find symbol
		int size = readD();
		           ^
  symbol:   method readD()
  location: class BlowFishKey
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\BlowFishKey.java:46: error: cannot find symbol
		byte[] tempKey = readB(size);
		                 ^
  symbol:   method readB(int)
  location: class BlowFishKey
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\BlowFishKey.java:63: error: cannot find symbol
			server.SetBlowFish(new NewCrypt(key));
			                       ^
  symbol:   class NewCrypt
  location: class BlowFishKey
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangeAccessLevel.java:39: error: cannot find symbol
		int level = readD();
		            ^
  symbol:   method readD()
  location: class ChangeAccessLevel
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangeAccessLevel.java:40: error: cannot find symbol
		String account = readS();
		                 ^
  symbol:   method readS()
  location: class ChangeAccessLevel
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:50: error: cannot find symbol
		String accountName = readS();
		                     ^
  symbol:   method readS()
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:51: error: cannot find symbol
		String characterName = readS();
		                       ^
  symbol:   method readS()
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:52: error: cannot find symbol
		String curpass = readS();
		                 ^
  symbol:   method readS()
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:53: error: cannot find symbol
		String newpass = readS();
		                 ^
  symbol:   method readS()
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:75: error: cannot find symbol
				try (var con = ConnectionFactory.getInstance().getConnection();
				               ^
  symbol:   variable ConnectionFactory
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\ChangePassword.java:88: error: cannot find symbol
					try (var con = ConnectionFactory.getInstance().getConnection();
					               ^
  symbol:   variable ConnectionFactory
  location: class ChangePassword
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:85: error: cannot find symbol
		_serverVersion = readC();
		                 ^
  symbol:   method readC()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:86: error: cannot find symbol
		_desiredId = readC();
		             ^
  symbol:   method readC()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:87: error: cannot find symbol
		_acceptAlternativeId = (readC() != 0);
		                        ^
  symbol:   method readC()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:88: error: cannot find symbol
		_hostReserved = (readC() != 0);
		                 ^
  symbol:   method readC()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:89: error: cannot find symbol
		_port = readH();
		        ^
  symbol:   method readH()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:90: error: cannot find symbol
		_maxPlayers = readD();
		              ^
  symbol:   method readD()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:91: error: cannot find symbol
		int size = readD();
		           ^
  symbol:   method readD()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:92: error: cannot find symbol
		_hexId = readB(size);
		         ^
  symbol:   method readB(int)
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:93: error: cannot find symbol
		size = 2 * readD();
		           ^
  symbol:   method readD()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:96: error: cannot find symbol
			_hosts[i] = readS();
			            ^
  symbol:   method readS()
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\GameServerAuth.java:107: error: cannot find symbol
			server.broadcastToTelnet("GameServer [" + server.getServerId() + "] " + ServerNameDAO.getServer(server.getServerId()) + " is connected");
			                                                                        ^
  symbol:   variable ServerNameDAO
  location: class GameServerAuth
C:\Users\_\git\l2j-server-login\src\main\java\com\l2jserver\loginserver\network\gameserverpackets\PlayerAuthRequest.java:36: error: cannot find symbol
		String account = readS();
		                 ^
  symbol:   method readS()
  location: class PlayerAuthRequest
100 errors
only showing the first 100 errors, of 161 total; use -Xmaxerrs if you would like to see more

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 720ms
1 actionable task: 1 executed

User avatar
JMD
Advanced User
Advanced User
Posts: 1439
Joined: Wed Apr 15, 2009 10:07 am

Re: Compiling In Eclipse Error

Post by JMD » Sat Nov 13, 2021 5:03 pm

I guess you are trying to compile the develop branch. You need JDK 17 for that.
Get it from here: https://github.com/adoptium/temurin17-b ... 0.1_12.msi

User avatar
Asmodaius
Posts: 170
Joined: Sun Jul 16, 2006 9:43 am

Re: Compiling In Eclipse Error

Post by Asmodaius » Sun Nov 14, 2021 7:05 pm

Thanks for the response.

Post Reply