VolmitSoftware / React

Smart Server Performance
https://volmit.com
GNU General Public License v3.0
95 stars 52 forks source link

Can't build #613

Closed QuintenQVD0 closed 1 year ago

QuintenQVD0 commented 3 years ago

Building the project gives a class file version error when compiling the plugin i get a error off: bad class file: /home/pi/.gradle/caches/modules-2/files-2.1/org.bukkit.craftbukkit/1.17/1.17/92a039b1e307af55262e6af94cdab7eef69bd958/1.17-1.17.jar(net/minecraft/core/IRegistry.class) class file has wrong version 60.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

To Reproduce Steps to reproduce the behavior:

  1. install java 8 on linux and gradle
  2. go in to the /React folder
  3. run gradle clean build
  4. See error

Expected behavior the class file shoud have version 52.0

Screenshots or Video Recordings If applicable, add screenshots or video recordings to help explain your problem.

Server and Plugin Informations

Additional context pi@raspberrypi:~/Documents/React $ gradle clean build Starting a Gradle Daemon (subsequent builds will be faster)

Task :clean UP-TO-DATE Task :generateLombokConfig UP-TO-DATE Task :compileJava /home/pi/Documents/React/src/main/java/primal/bukkit/nms/AdvancementHolder17.java:6: error: cannot access net.minecraft.core.IRegistry import net.minecraft.core.IRegistry; ^ bad class file: /home/pi/.gradle/caches/modules-2/files-2.1/org.bukkit.craftbukkit/1.17/1.17/92a039b1e307af55262e6af94cdab7eef69bd958/1.17-1.17.jar(net/minecraft/core/IRegistry.class) class file has wrong version 60.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

Task :compileJava FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 6m 18s 3 actionable tasks: 1 executed, 2 up-to-date

StrangeOne101 commented 3 years ago

Minecraft 1.17 requires Java 16. Compiling on Java 8 will not work.

ghost commented 3 years ago

https://github.com/VolmitSoftware/React/pull/614/files