• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

javaw and java -jar  RSS feed

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making an installer. The installer is packaged in a jar. It creates a jar file that contains the content to be installed and appropriate extractor classes. When I execute the jar using the command line, I can use two different commands:
"javaw myJar.jar"
OR
"java -jar myJar.jar"
When I use javaw, I get a message box saying no main class is found. When I use java -jar, the installer runs normally. When I d-click the installer jar, and try to make a jar a dos window opens up with the header "c:\jdk1.3.1\bin\jar.exe" and does nothing from that point on. It will close normally though.
Any ideas on why this is happening?
Thanks!!

------------------
Jason R. Kretzer
Java Programmer
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you specify the main class in the manifest file for your jar?
You might check out this link http://developer.java.sun.com/developer/qow/archive/21/index.html
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!