• Post Reply Bookmark Topic Watch Topic
  • New Topic

jar executiable file  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing a problem.i am unable to create a jar file.i am developing a software in which there is one main class and more than 20 nested classes,but problem is my jar file does not execute.Can any body help me
 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An executable jar file must have a META-INF/MANIFEST.MF file in which you define your main class (Main-Class: com.yourPackage.YourMainClass).

Have you included such a file ?
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using Apache ANT to make life easy for you. An example manifest file looks like this:

Main-Class: com.foo.bar.Client
Class-Path: /dev/lib/3rdpary.jar
 
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>jar file does not execute.

Are there error messages? Copy and paste them here
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using netBeans IDE (www.netbeans.org) or BlueJ (www.bluej.org) to make the Jars
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!