toolbox4minecraft / amidst

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

4.7 not working with Minecraft 1.17 #999

Open Thenaikan opened 3 years ago

Thenaikan commented 3 years ago

Error attached.

image

JDHnz commented 3 years ago

You need to upgrade to Java 16

dgl-thrawn commented 3 years ago

I have Java 16 JDK installed alongside Java 8 JRE. I'm able to run Minecraft 1.17 from both MultiMC and the regular launcher, but I get the same error message.

Mikolsito commented 3 years ago

I'm having the same issue too! :/

JDHnz commented 3 years ago

It is working for me. I downloaded "amidst-v4-7.jar", and am launching it with java -jar amidst-v4-7.jar. I only have the Microsoft build of OpenJDK 16 on my machine, the MSI for which can be found at https://docs.microsoft.com/en-nz/java/openjdk/download, which is currently https://aka.ms/download-jdk/microsoft-jdk-16.0.1.9.1-windows-x64.msi but this may be replaced with newer builds in the future.

I suspect the problem that everyone here is complaining about is with the "amidst-v4-7.exe" package, which appears to be specifically looking for JRE 8, as it gives this error when run on my machine: image

dgl-thrawn commented 3 years ago

It is working for me. I downloaded "amidst-v4-7.jar", and am launching it with java -jar amidst-v4-7.jar. I only have the Microsoft build of OpenJDK 16 on my machine, the MSI for which can be found at https://docs.microsoft.com/en-nz/java/openjdk/download, which is currently https://aka.ms/download-jdk/microsoft-jdk-16.0.1.9.1-windows-x64.msi but this may be replaced with newer builds in the future.

I suspect the problem that everyone here is complaining about is with the "amidst-v4-7.exe" package, which appears to be specifically looking for JRE 8, as it gives this error when run on my machine: image

Thanks. Tried the jar version and it works fine.

JDHnz commented 3 years ago

I'm not a java dev, but I think the fix may simply be to update the jdk version referenced in src/main/resources/amidst/metadata.properties from 1.8 to 1.16

Thenaikan commented 3 years ago

java

Doesn't work with the above Java version. I cannot update it any further as this is the latest version (at least according to the GUI update feature).

JDHnz commented 3 years ago

@Thenaikan see my comment above for a way of getting it to work. You are correct that it is not possible to automatically update the version of Java using the built-in updater.

anew742 commented 3 years ago

It is working for me. I downloaded "amidst-v4-7.jar", and am launching it with java -jar amidst-v4-7.jar. I only have the Microsoft build of OpenJDK 16 on my machine, the MSI for which can be found at https://docs.microsoft.com/en-nz/java/openjdk/download, which is currently https://aka.ms/download-jdk/microsoft-jdk-16.0.1.9.1-windows-x64.msi but this may be replaced with newer builds in the future.

I suspect the problem that everyone here is complaining about is with the "amidst-v4-7.exe" package, which appears to be specifically looking for JRE 8, as it gives this error when run on my machine: image

Where exactly does one put those launch arguments? I'm having the same issue as @Thenaikan and can't get it to work, even when using the .jar

JDHnz commented 3 years ago

From the command line. Probably the easiest way is to create a batch file in the same directory as the jar file and put the command in there.

Tencryn commented 3 years ago

Can confirm that this happens with the .exe despite having Java 16. The .jar file works fine though.

ghost commented 3 years ago

MSI download and jar version worked for me

Mr-Technician commented 3 years ago

Can confirm that this happens with the .exe despite having Java 16. The .jar file works fine though.

Same here. Latest version of both the jdk and jre are installed.

mlangas commented 3 years ago

So here is a workaround. Download the jar, not the exe. Right click the icon and open the properties. Make sure the "Open with" property is set to the MS version. Mine was still trying to use version 1.8.

Jupisoft111 commented 3 years ago

I had the same problem with the .EXE, but also with the .JAR. Luckily after installing the latest Java runtime 8 and JDK 16 now at least the .JAR is working now. And by the way I have several older versions installed, which still are required by some very old apps I still use nowadays and it still works. Hopefully soon the executable will also be fixed. Thanks a lot for all the help :-)

JSmurf11 commented 3 years ago

Is the jdk version from oracle different from Microsoft? Java(TM) SE Runtime Environment (build 1.8.0_291-b10) is what I have now and given the Microsoft jdk 1.16 from links above I'm planning to install the Microsoft version to run amidst

JDHnz commented 3 years ago

Nah, it was just easier to find than the correct one from Oracle

JSmurf11 commented 3 years ago

Nah, it was just easier to find than the correct one from Oracle

will installing microsoft-jdk-16.0.1.9.1-windows-x64.msi remove the current jdk that I'm using?

JDHnz commented 3 years ago

No

SirRemus commented 3 years ago

So here is a workaround. Download the jar, not the exe. Right click the icon and open the properties. Make sure the "Open with" property is set to the MS version. Mine was still trying to use version 1.8.

this worked for me without getting a different jdk, just asked to open with Java (TM) SE binary.

Pingwing7 commented 3 years ago

Any way to fix the problem in simpler words? EXE and JAR both don't work for me and I don't really understand what is being said here.

Edit: Nvm just downloaded microsoft-jdk-16.0.1.9.1-windows-x64.msi like someone above said and it worked.

Thenaikan commented 3 years ago

Any way to fix the problem in simpler words? EXE and JAR both don't work for me and I don't really understand what is being said here.

Edit: Nvm just downloaded microsoft-jdk-16.0.1.9.1-windows-x64.msi like someone above said and it worked.

I'm in the same boat and don't really have time to try to figure this all out. Just wait for the author to fix the exe - might be a while so try to be patient.

fbalaguera commented 3 years ago

Hello, try install this: https://www.oracle.com/java/technologies/javase-jdk16-downloads.html (Reboot when installed) Then download and run the Amidst JAR file https://github.com/toolbox4minecraft/amidst/releases (https://github.com/toolbox4minecraft/amidst/releases/download/v4.7/amidst-v4-7.jar) That should be enough

miketoles commented 3 years ago

Installing JDK16 doesn't work on Mac. Screen Shot 2021-07-18 at 10 00 48 AM