Click here to Skip to main content
15,667,847 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Help me please, i have problem creating .jar file in netbeans IDE 6.9.1. I tried double clicking the .jar file in dist to see it could run but it give out result Failed to load Main-Class manifest attribute from....
Could anyone help me, thank you.

1 solution

Did you try running it from the Command prompt using

java -jar filename.jar

And if you want to use this application you have developed in a mobile then the way you are running it is wrong. MIDP application neither contains main class nor can can be run on Java SE.

Take a look at this link. This might help.

Creating Executable Jar[^]
Share this answer
clenz88 3-Apr-11 4:15am    
Thank you for replying. Im developing this application to run it on mobile, and you mean i cant test it by double clicking it and need to send to mobile to test it? Sorry for lack of knowledge, im new to this
ZeeroC00l 3-Apr-11 5:20am    
Yes, you cann't run it like that.
It can be tested on a default emulator or Java ME SDK or by some device by installing it. Some device allow you to install jar file directly, for some you need to install OTA server and use JAD/JAR files to get the app up and running.
Sandeep Mewara 3-Apr-11 5:40am    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900