• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while running jar file.  RSS feed

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!