Hi all, When i try to run the .jar file,the following error is thrown. "Failed to load Main-Class manifest attribute from" How could i correct the above error. As i'm very much new to this jar file creation.I tired with following sample jar cf sample1.jar GetIP.class and just i run the .jar as java -jar sample1.jar
is that rite are something else need to follow? correct me if i'm wrong.
You need to put the name of your class with the main method in the jar's manifest file. Read this, particularly the bits about manifest files and setting the entry point.
Originally posted by Campbell Ritchie: You need to put the name of your class with the main method in the jar's manifest file. Read this, particularly the bits about manifest files and setting the entry point.
one more doubt please In my jar file named Myjar having the following contents.. under MyPackage
--> MyClass --> Image file (bmp)
"MyClass" takes "Image file" as input and produce another "Image file" (bmp)as output. I want to write that output of that "MyClass" to the "Myjar". How can we do that?is there any possibility?