I have created an executable .jar file. How can I execute the .jar using a batch-file without mentioning a class path?
.jar
On Windows you can use the following command.
start javaw -jar JarFile.jar
By doing so, the Command Prompt Window doesn't stay open.
2.1m questions
2.1m answers
60 comments
57.0k users