toolbox4minecraft / amidst

Advanced Minecraft Interface and Data/Structure Tracking
GNU General Public License v3.0
2.14k stars 238 forks source link

Trying to use 1.17.1 leads to "This version of Minecraft isn't compatible with your java installation" #1080

Open Sylvanling opened 2 years ago

Sylvanling commented 2 years ago

image Amidst v4-7. My Java is the most recent version. It works for all other versions below 1.17.

Kenny417 commented 2 years ago

I'm seeing this as well

Th4tM0nk3y commented 2 years ago

Same issue, running multiple java versions on my machine, java 16 showing up when using "java -version" in terminal

draconicode commented 2 years ago

Amidst decompiles Minecraft classes to access the biome generation part. Except Amidst was made and compiled with Java 8, so when it tries to decompile the Minecraft 1.17 classes that were made and compiled using Java 16, well you get that message. (which basically says that the java version it uses is too old to decompile the new classes)

I downloaded the source code and converted the project to Java 17, and low and behold it works. So right now we can only wait for amidst to be updated to 1.18, since that version uses Java 17.

Or of course you can do as I did, but it does require some knowledge.

Sylvanling commented 2 years ago

I've found a pretty simple solution. I downloaded JDK for Java 16 and that makes the jar version of amidst work. As far as I can tell the exe version can't really be fixed.

draconicode commented 2 years ago

I've found a pretty simple solution. I downloaded JDK for Java 16 and that makes the jar version of amidst work. As far as I can tell the exe version can't really be fixed.

That too 👆

Caty15 commented 2 years ago

the error happens because 1.17 runs on java 16, and 1.18 runs on java 17. however, even with java 17, 1.18 wont work because amidst itself hasnt been updated

mpsijm commented 2 years ago

https://github.com/mpsijm/amidst/releases/tag/v4.7-java-17 should fix Amidst for Minecraft 1.17 and below, see #1088 for details.

@Caty15 is right: for Amidst to work with Minecraft 1.18, it should first be fixed to work with the new world generation.