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 / 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 |
Can the main method be overloaded?
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
What if I do not provide the string array as the argument to the method?
What do you understand by casting in java language? What are the types of casting?
What is a yaml file in java?
What are the disadvantages of java sockets?
Is lambda functional programming?
What are anonymous methods and lambda expression?
What is contextpath in java?
Explain daemon thread.
Which method is used to create the daemon thread?
I get an exception if I remove the static modifier from main?