You probably want to set the maven.jar.mainclass attribute to get the main class entry written to the jar manifest file. See
http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html

Regards,
Gisbert Amm

Zheng Wen Zhe wrote:
Hi,
I experienced an exception Error while executing the App class of my
project.
Could any body give some advice? where is the fault?

Regards,
Jason

******************************** 1.Run maven genapp to execute genapp goal to create a new project;
2.execute jar goal with maven jar;
3.execute App class with >java tartget\test-application-1.0.jar
mdn.testapp.App;

Error message from console:
C:\my-apps\genapp\test-app>java target\test-app-1.0.jar mdn.testapp.App
Exception in thread "main" java.lang.NoClassDefFoundError:
target\test-app-1/0/jar

The expect result is: "Hello world!" displaying in console.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to