3arthqu4ke / headlessmc

Minecraft on the command line
https://3arthqu4ke.github.io/headlessmc/
MIT License
155 stars 18 forks source link

Java version not found #36

Closed Allerek closed 1 year ago

Allerek commented 1 year ago

image I got java 8 installed, restarted my PC etc but it keeps saying that

3arthqu4ke commented 1 year ago

Did you follow the instructions from the README?

After that HeadlessMc will create a HeadlessMc/config.properties file. Edit that file, create a key hmc.java.versions inside. The value should be a ; separated list to of java executables HeadlessMc can use, like this:

hmc.java.versions=C:/Program Files/Java/jre-<version>/bin/java;C:/Program Files/Java/jdk-<version>/bin/java

After you are done, type config -refresh then java -refresh, press enter, and you are ready start. Here are some of the most important commands: