Login  Register

Re: Beginner Deployment Questions

Posted by jmaasing on Jan 26, 2014; 6:02pm
URL: https://forum.jogamp.org/Beginner-Deployment-Questions-tp4031359p4031360.html

cinolt wrote
The problem comes with trying to JAR this program.
"java Test" works, but
"jar cfm Test.jar Manifest.txt Test.class"
"java -jar Tech.jar"
comes up with
"Error: Could not find or load main class Test"
I guess this is a typo? You create a jar called Test but try to run a jar called Tech.

This should explain most of what you need: http://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html