i have make jar file but when i click in this file then arr
swhow "no faund main class" plese help me in this problem
becose i want to make a jar file as a dxdcutable file



i have make jar file but when i click in this file then arr swhow "no faund main class" ..

Answer / avi s

You must define the Main class in the Manifest.MF file
When you package the jar file use the Manifest you created
and do not use the default generation of manifest file.
see jar command help.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Java Related AllOther Interview Questions

Can the main method be overloaded?

0 Answers  


When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?

0 Answers  


What if I do not provide the string array as the argument to the method?

0 Answers  


What do you understand by casting in java language? What are the types of casting?

0 Answers  


What is a yaml file in java?

0 Answers  






What are the disadvantages of java sockets?

0 Answers  


Is lambda functional programming?

0 Answers  


What are anonymous methods and lambda expression?

0 Answers  


What is contextpath in java?

0 Answers  


Explain daemon thread.

0 Answers  


Which method is used to create the daemon thread?

0 Answers  


I get an exception if I remove the static modifier from main?

0 Answers  


Categories