Running a .jar file with Java
Solved
Hello,
I downloaded the JMOT software. I extracted the files from the compressed folder.
I now want to run the .jar file (I downloaded the Java Platform SE binary) but when I try to run the file with Java, a black window opens for 1 second and then closes, and then nothing happens...
What should I do to run this .jar file?
I downloaded the JMOT software. I extracted the files from the compressed folder.
I now want to run the .jar file (I downloaded the Java Platform SE binary) but when I try to run the file with Java, a black window opens for 1 second and then closes, and then nothing happens...
What should I do to run this .jar file?
2 answers
-
ModeratorHello,
Open a command prompt and typejava -jar C:/.../file.jar
this will prevent the window from closing.
There is probably an error that will be displayed, and you will be able to retrieve it to possibly correct it.
--
Trust does not exclude control.-
-
Moderator@danycoco
Hello, run your program with the command java -jar C:/.../file.jar, as explained in the message #1. If the command doesn't work, detail your problem in a new discussion thread, as this one is closed.
-