Launch Minecraft from cmd (updated) (nodejs)

Viewed 2

Im trying to launch minecraft from cmd. When in the version folder (v1.8.9)

When doing java -jar 1.8.9.jar I get the error Could not find or load main class net.minecraft.client.Main

When doing java -cp 1.8.9.jar net.minecraft.client.main.Main I get the error A JNI error has occurred, please check your installation and try again

This certainly is possible as people have programs that implement this.

launch arguments do have to be added, but I dont think thats the problem here.

Launch args from base 1.8.9 -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M

for the solution, I dont want to have to modify any java versions on the computer / ect.

(I want to be able to use this from nodejs using exec)

0 Answers
Related