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
Answer Posted / 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 View All Answers
Is jpa a framework?
What do you understand by downcasting?
What is adoptopenjdk?
What are tags in java?
What are the advantages of lambda functions?
Can an application have multiple classes having main method?
Why do we need framework in java?
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
Why sun introduce concept of anonymous class? What is need and real life use of anonymous class
What does el mean in java?
How do I run a project in eclipse?
What is native class in java?
When a thread is created and started, what is its initial state?
I get an exception if I remove the static modifier from main?
What can open a jar file?