In trying to learn a little java, I created an application to access a derby database. Now I want to make the application into an executable jar for distribution. I don't care how many jars I end up with, just so that it runs by double-clicking one. How do I do this from the command line? Nothing I've tried lets me run it by double-clicking. One other requirement, MyDB.jar cannot be compressed (if so, the app runs super slow).
Required objects:
Main.class
Main$1.class
Main$2.class
Helper.class
MyDB.jar
derby.jar
Manifest:
Manifest-Version: 1.0
Main-Class: Main
Class-path: . derby.jar MyDB.jar
To run from the command line:
java -cp .;derby.jar;MyD B.jar Main
Required objects:
Main.class
Main$1.class
Main$2.class
Helper.class
MyDB.jar
derby.jar
Manifest:
Manifest-Version: 1.0
Main-Class: Main
Class-path: . derby.jar MyDB.jar
To run from the command line:
java -cp .;derby.jar;MyD B.jar Main