You make a manifest file that says what the main class is:
Code:
Manifest-Version: 1.0
Main-Class: Shapes
Created-By: aaa
Then you save this as a file called manifest.mf, and use the 'jar' command (it's in the java sdk and works like 'tar'):
jar -cfm [name of new archive] manifest.mf [files you want to add]