Earthcomputer / EnchantmentCracker

Cracking the XP seed in Minecraft and choosing your enchantments
MIT License
1.04k stars 91 forks source link

Fail to open enchcracker #148

Closed hueyte closed 4 years ago

hueyte commented 4 years ago

ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jre1.8.0_221\bin Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Failed to launch enchcracker!

  1. Ensure you have installed Java correctly and that Java is in your PATH.
  2. 64-bit Java is REQUIRED for enchcracker. This catches a lot of people out. To check your Java version, run "java -version".
  3. 2GB of RAM is a minimum requirement. enchcracker will fail to start if you don't have more than 2GB of RAM to spare.
  4. If you still think this is an error, please report it to https://github.com/Earthcomputer/EnchantmentCracker/issues Press any key to continue . . .
Earthcomputer commented 4 years ago

?template 64bitjava

earth-github-bot[bot] commented 4 years ago

This issue is commonly caused by not having 64-bit Java on your system. Please run java -version in cmd to check if you are using 32-bit. If this command does not specify whether you are using 32-bit or 64-bit, then you are using 32-bit. If you are, use this link to install 64-bit Java, then try running the Enchantment Cracker again. If this doesn't work, paste the output of java -version here so we know that you have tried it. Note: sometimes you may need to change your environment variables to use the new Java version you installed. A good guide for doing this on Windows 10 can be found here. You only need to follow steps 1-4.

hueyte commented 4 years ago

java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) Client VM (build 25.241-b07, mixed mode, sharing)

hueyte commented 4 years ago

I've changed the environment variables also.

hueyte commented 4 years ago

System Properties 07_04_2020 11_25_40

hueyte commented 4 years ago

System Properties 07_04_2020 11_27_24

hueyte commented 4 years ago

okay, I solved it by changing C:\Program Files\Java\jre1.8.0_221\bin becomeC:\Program Files\Java\jre1.8.0_221