Packaging a Java application in a .jar file is the last step that can make the application truly "portable" -- you can send it to someone and they can just run it. Someday, a Java .jar will work like a PDF or GIF. Once they have the file or email attachment, they can just double-click it and the right thing happens.
(Editorial) It would be great if Sun would emphasize the double-click .jar feature more. I suspect Sun's command-line culture has a hard time understanding the importance of seamless double-click for the GUI masses. Also, Sun is pushing Java Web Start (below) as the ultimate solution for this sort or thing.
Main-class: MyApp
unix% jar -mcf main-class.txt MyApp.jar *.class
unix% java -jar MyApp.jarHowever, that's not the hip way. The hip way is that the user just double clicks on the .jar file, and then the right thing happens. The JRE makes this work mostly. On Windows it puts in a registry entry, and on Unix (well Solaris at least), there's a magic number the OS knows about. With the coming of Mac OSX, it could work on the Mac too.
I look forward to the day when people can exchange .jar applications just like they exchange PDF and GIF today. To distribute an application, I'll just put its .jar file on my web page along with a single link to the official current Java Runtime download page for people who don't have Java installed (just like PDF and acrobate today).