File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Error while running jar file. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Error while running jar file." Watch "Error while running jar file." New topic
Author

Error while running jar file.

Yatin Shah
Ranch Hand

Joined: Sep 11, 2004
Posts: 72
Hi,

I did jar to run as exe file. But, when I am double clicking on jar file it shows following error.

Failed to load Main-class mainfest attribute from
D:\Yatin\Project\UserInterface.jar

Anyone can help me How can I create exe file.

Thanking You
Yatin Shah.
Shan Accent
Greenhorn

Joined: May 08, 2005
Posts: 23
Did u added the correct manifest file to jar file?

if not do it.

Create mf.txt file and the following code.
Main-Class: <Main class name>

for eg:
d:\sample>jar -cvfm <jar file name> mf.txt <class files>

If you have problem let me know....
 
I agree. Here's the link: jrebel
 
subject: Error while running jar file.
 
Similar Threads
I need help to create exe file.
How to create exe file?
How to make exe file?
How can I jar file and batch file to treat as a exe file?
How to create exe file