Earlier, I had just one jar file and the manifest was set up such that I can simply run my program as:
java -jar MyApp.jar
Now, I have separated my functionality into two jar files - MyCore.jar and MyApp.jar.
The following command works:
java -cp "*" com.mycompany.mypackage.App
But I cannot get the following to work
java -cp "*" -jar MyApp.jar
I get a ClassNotFoundException.
I prefer using "-jar" switch. Is there a way to make it work?