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

What is lambda expressions action func and predicate?

0 Answers  


I am new to jsf rich faces. I am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value i selected in backing bean?

1 Answers   Hexaware, IBM,


Is java singleton thread safe?

0 Answers  


Is lambda cheaper than ec2?

0 Answers  


What is difference between map and flatmap in java 8?

0 Answers  






Are the actual permissions for the application defined at run-time or compile-time? : java security

0 Answers  


What is repository pattern in java?

0 Answers  


Is java an api?

0 Answers  


What is difference between loosely coupled and tightly coupled in java?

0 Answers  


Do I need both jdk and jre?

0 Answers  


Is jar an executable?

0 Answers  


What is connection pooling in java?

0 Answers  


Categories