AdvancedXRay / XRay-Mod

Neoforge based XRay mod designed to aid players who don't like the ore searching process.
https://www.curseforge.com/minecraft/mc-mods/advanced-xray
GNU General Public License v3.0
159 stars 79 forks source link

"Error loading class: java/lang/Boolean (java.lang.IllegalArgumentException: Unsupported class file major version 66)" when using Java 22 #272

Closed Heraclius closed 5 months ago

Heraclius commented 5 months ago

Describe the bug Attempting to load the latest version of the mod (for MC 1.20.6) using Java 22 crashes the game upon startup. Switching to Java 21 fixes the issue.

To Reproduce Steps to reproduce the behavior:

  1. Set up Minecraft 1.20.6
  2. Install NeoForge 20.6.116
  3. Install Advanced XRay 86.0.0
  4. Launch the game using Java 22
  5. It doesn't launch!

Expected behavior I expect the game to launch?

Minecraft Enviorment

Additional context For context, this is on Windows 10. Here is the full MultiMC log file: log.txt

MichaelHillcox commented 5 months ago

Minecraft doesn't use java 22