GravitLauncher / LauncherPrestarter

MIT License
10 stars 12 forks source link

An error occurs when building modules #15

Open anarchist-666 opened 6 months ago

anarchist-666 commented 6 months ago

`> Task :compileJava FAILED C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:3: error: cannot access LaunchServer import pro.gravit.launchserver.LaunchServer; ^ bad class file: C:\Users\└эрЁїшёЄ.gradle\caches\modules-2\files-2.1\pro.gravit.launcher\launchserver-api\5.6.0-SNAPSHOT\44145cb34a2e65d819e81316f0efd6974a30b57f\launchserver-api-5.6.0-SNAPSHOT.jar(/pro/gravit/launchserver/LaunchServer.class) class file has wrong version 65.0, should be 61.0 Please remove or make sure it appears in the correct subdirectory of the classpath. C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:4: error: cannot access LauncherBinary import pro.gravit.launchserver.binary.LauncherBinary; ^ bad class file: C:\Users\└эрЁїшёЄ.gradle\caches\modules-2\files-2.1\pro.gravit.launcher\launchserver-api\5.6.0-SNAPSHOT\44145cb34a2e65d819e81316f0efd6974a30b57f\launchserver-api-5.6.0-SNAPSHOT.jar(/pro/gravit/launchserver/binary/LauncherBinary.class) class file has wrong version 65.0, should be 61.0 Please remove or make sure it appears in the correct subdirectory of the classpath. C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:6: error: cannot find symbol public class PrestarterLauncherBinary extends LauncherBinary { ^ symbol: class LauncherBinary C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterModule.java:9: error: cannot access LaunchServerLauncherExeInit import pro.gravit.launchserver.modules.events.LaunchServerLauncherExeInit; ^ bad class file: C:\Users\└эрЁїшёЄ.gradle\caches\modules-2\files-2.1\pro.gravit.launcher\launchserver-api\5.6.0-SNAPSHOT\44145cb34a2e65d819e81316f0efd6974a30b57f\launchserver-api-5.6.0-SNAPSHOT.jar(/pro/gravit/launchserver/modules/events/LaunchServerLauncherExeInit.class) class file has wrong version 65.0, should be 61.0 Please remove or make sure it appears in the correct subdirectory of the classpath. C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:8: error: cannot find symbol protected PrestarterLauncherBinary(LaunchServer server, PrestarterModule module) { ^ symbol: class LaunchServer location: class PrestarterLauncherBinary C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterModule.java:29: error: cannot find symbol public void init(LaunchServerLauncherExeInit init) { ^ symbol: class LaunchServerLauncherExeInit location: class PrestarterModule C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:6: error: cannot access LauncherBuildTask import pro.gravit.launchserver.binary.tasks.LauncherBuildTask; ^ bad class file: C:\Users\└эрЁїшёЄ.gradle\caches\modules-2\files-2.1\pro.gravit.launcher\launchserver-api\5.6.0-SNAPSHOT\44145cb34a2e65d819e81316f0efd6974a30b57f\launchserver-api-5.6.0-SNAPSHOT.jar(/pro/gravit/launchserver/binary/tasks/LauncherBuildTask.class) class file has wrong version 65.0, should be 61.0 Please remove or make sure it appears in the correct subdirectory of the classpath. C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:7: error: cannot access BuildExeMainTask import pro.gravit.launchserver.binary.tasks.exe.BuildExeMainTask; ^ bad class file: C:\Users\└эрЁїшёЄ.gradle\caches\modules-2\files-2.1\pro.gravit.launcher\launchserver-api\5.6.0-SNAPSHOT\44145cb34a2e65d819e81316f0efd6974a30b57f\launchserver-api-5.6.0-SNAPSHOT.jar(/pro/gravit/launchserver/binary/tasks/exe/BuildExeMainTask.class) class file has wrong version 65.0, should be 61.0 Please remove or make sure it appears in the correct subdirectory of the classpath. C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:18: error: cannot find symbol public class PrestarterTask implements LauncherBuildTask, BuildExeMainTask { ^ symbol: class LauncherBuildTask C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:18: error: cannot find symbol public class PrestarterTask implements LauncherBuildTask, BuildExeMainTask { ^ symbol: class BuildExeMainTask C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:19: error: cannot find symbol private final LaunchServer server; ^ symbol: class LaunchServer location: class PrestarterTask C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:24: error: cannot find symbol public PrestarterTask(LaunchServer server, PrestarterModule module) { ^ symbol: class LaunchServer location: class PrestarterTask C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:13: error: method does not override or implement a method from a supertype @Override ^ C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:15: error: cannot find symbol tasks.add(new PrestarterTask(server, module)); ^ symbol: variable server location: class PrestarterLauncherBinary C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterLauncherBinary.java:15: error: cannot find symbol tasks.add(new PrestarterTask(server, module)); ^ symbol: variable tasks location: class PrestarterLauncherBinary C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterModule.java:26: error: cannot find symbol registerEvent(this::init, LaunchServerLauncherExeInit.class); ^ symbol: class LaunchServerLauncherExeInit location: class PrestarterModule C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:29: error: method does not override or implement a method from a supertype @Override ^ C:\LauncherPrestarter-master\Prestarter_module\src\main\java\pro\gravit\launcher\launchermodules\prestarter\PrestarterTask.java:34: error: method does not override or implement a method from a supertype @Override ^ 18 errors

FAILURE: Build failed with an exception.

BUILD FAILED in 7s 1 actionable task: 1 executed`

BADtochka commented 5 months ago

Аналогичная проблема была в версии JAVA, обновил до 21-ой, всё сбилдилось.

Engrems commented 5 months ago

Аналогичная проблема была в версии JAVA, обновил до 21-ой, всё сбилдилось.

Спасибо большое, переставил JAVA_HOME и path на 21-ю и всё сбилдилось. Можно даже добавить в описание в readme на репе.

BADtochka commented 5 months ago

@gravit0, точно ли заявленная java 17 подходит под билд?

Andress-s commented 2 months ago

А как её поменять?