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


Please Help Members By Posting Answers For Below Questions

What is a java proxy?

566


Why oracle type 4 driver is named as oracle thin driver?

537


What is type_scroll_insensitive in java?

562


What is messaging queue in java?

576


How do I export a java project?

548






What is a java executable jar file?

545


Does netbeans need jdk?

556


What if I write static public void instead of public static void?

540


What is a flatmap?

561


What is lambda expression in mvc?

556


Why java?

607


What is connection pooling in java?

616


Who is at risk in java? : java security

566


What is a delimiter in java?

561


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

1504