• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to run jar file  RSS feed

 
SanjayR Jain
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I made a .java file in eclipse 3.4 (Ganymade). Function of this file is to turn on the caps lock key of the key board.I ran it and it is working properly.


Now by using export facility I made .jar file of this class asn put it on my system desktop.

But when I double click on this jar file it is not running and giving error like below

Failed to load main class menifest attribute from turn_on_caps.jar

(Here turn_on_caps.jar is the jar made by me)

Please tell me where I am doing wrong?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to set the JAR's entry point in the Manifest file. Check this page
 
SanjayR Jain
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot
Its working now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!