0

How to in Java console app run JAR file and get output of it and sent commands? I need for creation controller of minecraft server. Normally is starting minecraft server with BAT file with this code:

java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true

PAUSE

How to I get this in Java console application using netbeans? WITHOUT RUN CMD.

Samuel Tulach
  • 1,319
  • 13
  • 38

1 Answers1

1
java -jar <jar-file-name>.jar

But this will only work if you have created runnable .jar

This has been answered here Run jar file in command prompt

Community
  • 1
  • 1