Can anyone tell whats the meaning of Failed to load Main
In java virtual machine launcher
""Failed to load Main - class Mainifest attribute from
C:\Program Files (x86)\java\jre6\lib\xxx.jar""
Printable View
Can anyone tell whats the meaning of Failed to load Main
In java virtual machine launcher
""Failed to load Main - class Mainifest attribute from
C:\Program Files (x86)\java\jre6\lib\xxx.jar""
Please do not post multiple copies of the same question. I've deleted your duplicate posts, and moved this thread to a more appropriate forum.
What jar are you trying to run? How exactly are you trying to run it?
"""I have moved this thread to - Java IDEs
Creating a JAR file in Eclipse is easy.
In Eclipse, select File > Export > Java > Jar File
Click Next
Tick the correct Project on the left hand side and expand to tick the correct Package.
With the Package selected, tick the .java files on the right hand side which you wish to be added to the JAR.
Where it says 'Select the export destination'
Browse to the desired destination and give the file a name, eg time.jar
Make sure 'compress the contents of the JAR file' is ticked and click Next, then Next again.
Make sure 'Generate the manifest file' and 'Seal the JAR' are selected.
Under 'Select the class of the application entry point:' click Browse and select the main Class.
Now click Finish.
Your JAR file will now be in the destination folder selected earlier.
You can run this by navigating to the directory in a command window and typing: java -jar time.jar"""
i done like this
What is the main class of the jar? Is that what the manifest says? Examine the contents of the jar to be sure.
its says the version and the main class
I do not understand what you're trying to say, and I suspect that you don't understand what I'm saying either. The best I can do is point you towards the tutorials: Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)