Making Your Application Into A .jar File

I'll clarify the details later. But for now, take a look at this relatively complete example from Princeton.