People,
I used to have only one jar file, and the manifest was set up in such a way that I can just run my program like:
java -jar MyApp.jar
Now I divided my functionality into two jar files - MyCore.jar and MyApp.jar.
The following command works:
java -cp "*" com.mycompany.mypackage.App
But I can't get the following to work
java -cp "*" -jar MyApp.jar
I get a ClassNotFoundException.
I prefer to use the "-jar" switch. Is there any way to make it work?
Thank you in advance for your help.
Regards,
Peter
source
share