Running a .jar file with Java

Solved
Kolijah -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
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?

2 answers

  1. KX Posted messages 19031 Status Moderator 3 020
     
    Hello,

    Open a command prompt and type
    java -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.
    2
    1. danycoco Posted messages 91 Status Member 8
       

      Hello,

      I'm bringing up this old topic. I have exactly the same problem today, which doesn't seem to be resolved. JMOT is not worth trying to start. I've installed Java, I ask to open it with Java, but nothing does.

      Who can help me?

      Thank you

      0
      1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944 > danycoco Posted messages 91 Status Member
         

        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.

        1