Results 1 to 3 of 3
Thread: Java JAR file execution
- 08-16-2012, 10:32 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
Java JAR file execution
Hi everyone,
I have never actually worked with JAR files. This is my first time, and I am having trouble.
After much trouble, I finally modified the manifest so it runs. On command prompt anyway. As in, using java -jar example.jar works perfectly fine, but when I double click it, nothing happens. Help?
- 08-16-2012, 11:04 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: Java JAR file execution
What operating system and desktop environment are you using? And do other .jar files run when you double click them?
Generally Windows assumes double click == run the .jar with the javaw.exe executable and sets things up to do that. (Although occasionally people find that they need to set the association - it's been discussed here before.)
Linux makes no such assumption. Out-of-the-box, my K desktop regards the jar file as an archive (like a zip file) and a double click opens it for editing.
- 08-17-2012, 09:24 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
keep open the file written by the filewriter at execution
By noobplus in forum New To JavaReplies: 3Last Post: 04-15-2012, 01:38 PM -
Terminating execution of a JFrame without terminating execution of child frames...
By nish.singha20 in forum AWT / SwingReplies: 6Last Post: 11-30-2011, 08:39 PM -
Jar file execution error
By uberketer in forum New To JavaReplies: 3Last Post: 06-06-2011, 12:27 PM -
Re-iterate Thread execution after its execution finishes.
By TurtleRock in forum New To JavaReplies: 10Last Post: 11-29-2010, 02:02 PM -
Need help in java program execution...
By sachinmittal in forum New To JavaReplies: 6Last Post: 10-10-2008, 02:37 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks