Reputation:
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.
Upvotes: 0
Views: 2297
Reputation: 519
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
Upvotes: 1