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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.