• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a question about executable jar files

 
Annalisa Annalisa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I've generated my jar file following the suggestions of a thread of yours. I think I've generated it correctly because if I run the command
java -jar Myjar.jar from the Windows command line, my dialog starts correctly. But it doesn't when double-clicked. The Windows dialog asking which application I want to use to pen the file appears and I don't know what to choose. Sorry if the answer is obvious but I really don't know it .
:roll:

Thank you everybody,
Annalisa
 
Nischal Tanna
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do u have winzip or winrar... use it to open the jar
 
Horatio Westock
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this thread.
 
Annalisa Annalisa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you but I still have problems. Of course I don't have to simply list the content of the file but I have to launch the application. And I can't do it. I followed the steps I've read in the thread suggested, but I get the following error:
 
Annalisa Annalisa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Couldn't find the main class. Program will exit.'

(sorry for the division in 2 posts)
 
Annalisa Annalisa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally solved my problem with an 'escamotage': I've written a .bat file that launches my application from command-line but it works like a double-clicked executable..
thank you all

Annalisa
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic