S
S
shadowrebel2016-09-30 18:13:31
Java
shadowrebel, 2016-09-30 18:13:31

Launching minecraft via command line?

Drastity. How to run minecraft.jar from command line?
In more detail:
I am making a launcher on node.js (I SAY IMMEDIATELY: those who like to notice that "ha, why write your own launcher if there are ready-made ones?" / "why write on node.js if there is java?" go through the forest), you need to implement the launch of the client , I suppose to implement with the help of com. strings, or rather the shelljs module.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2016-09-30
@MechanID

I have an init script on the bash, directly the launch line:
java -Xmx4096M -Xms4096M -jar minecraft.jar nogui

D
Dark Hole, 2016-09-30
@abyrkov

There is an excellent article about it. But if you fall into reading it all, then I enclose the command from it (replace the path with your own). However, this is the same as Vladimir 's, except that the memory is not specified with gui
java -jar ../HelloWorld/helloworld.jar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question