Results 1 to 3 of 3
Thread: problem with output of jar file
- 07-04-2009, 09:31 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 10
- Rep Power
- 0
problem with output of jar file
Hello everyone
I have written a simple program that displays Hello. Then I have created its jar file using the following command:
jar -efc Hello Hello.jar Hello.class
The jar file runs well in the command prompt by using the following command:
java -jar Hello.jar
But when I double click the jar file, nothing happens. No output is displayed. How can I make the jar file run simply by double clicking it?
- 07-04-2009, 03:47 PM #2
Your system must be configured to execute jar files like this. If on Windows, a file association is required. Try reinstalling Java and it should be set up automatically.
If this is just a console application, it is likely that the command window appears and disappears before you can see it, as the program is so short.Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 07-04-2009, 04:00 PM #3
When your problem is solved, please mark it as SOLVED using the threads's tools below the google ads.
USE CODE TAGS--> [CODE]...[/CODE]
Get NotePad++ (free)
Similar Threads
-
No output to file
By shiva in forum Java ServletReplies: 0Last Post: 04-24-2009, 02:06 PM -
Output to a text file
By sfe23 in forum New To JavaReplies: 4Last Post: 03-26-2009, 10:44 PM -
Search a word(taken from one file) in another file and give the line as the output
By SwapnaNaidu in forum New To JavaReplies: 7Last Post: 11-19-2008, 02:09 PM -
Output Problem
By jazz2k8 in forum New To JavaReplies: 4Last Post: 05-26-2008, 10:59 AM -
Output problem
By jvasilj1 in forum New To JavaReplies: 0Last Post: 01-31-2008, 06:39 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks