This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 2578

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: 1871
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="" target="_blank" rel="nofollow"></a><br />Nator - <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Running a jar file
Similar Threads
Removing Eclipse Ganymede
I don't understand the thin client / fat client concept
Swing App and JWS
Hot Spot JVM Crashes Urgent pls help
jar files