I have build Java Application with maven, it build all dependency in Target folder, now I am trying to run that jar file, from Linux its giving error as command- java -jar yourApp.jar argument1
Error- no main manifest attribute, in yourApp.jar
after doing some google I ran command as under-
java -cp yourApp.jar my.pack.testpack.MyMainClass "argument1"
now its giving error-
Caused by: java.lang.ClassNotFoundException: my.pack.testpack.common.components.logger.LoggerFactory
I am surprised why this issue is coming, if this issue has to come then it should come at run time when running from eclipse when running from eclipse working fine,also I checked the jar file which I am using having bundled this class file.
Please help