This question already has an answer here:
Is there a way to run this command line within a Java application?
java -jar map.jar time.rel test.txt debug
I can run it with command but I couldn't do it within Java.
This question already has an answer here:
Is there a way to run this command line within a Java application?
java -jar map.jar time.rel test.txt debug
I can run it with command but I couldn't do it within Java.
You can also watch the output like this:
And don't forget, if you are running in Windows, you need to put "cmd /c " in front of your command.
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html