jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Running a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Running a jar file" Watch "Running a jar file" New topic

Running a jar file

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

I have a self executing JAR file and it works fine on the machines we tested. However, the client reports that he is unable to run it on one particular machine and the opening dialog box of the app itself is not displayed. (JOptionPane dialog). We have told him to run it using following commnad -
>java -jar myapp.jar
But client reports that the app simply returns to the command prompt. If Java is not in the path, then perhaps it should be reported. What else could be causing this problem?
- Manish
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
just tell them to unjar and run main class directly and see if that works...
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
Have him type java -version in a command prompt to see if java is on the path. if it is, you will get back some text telling what version of java it found. If not, it should say something like "command not found"

My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: Running a jar file
It's not a secret anymore!