Hello, I am having a little difficulty understanding the ways to package a program for others to use. When I double click on the class file I get a dialog asking me what app to open the file in. I want to be able to double click on the program and have the program execute. Is the jar file like an exe file? And are all the classes packaged into a single jar file? Is this the only way to package a program or is there others?
If you want a file that you can click on to start the app, use a jar file. You can put all the parts and only the parts needed in the jar.
There are many postings on this site on how to build a jar file
Use the Search to find them.
Search on the Suns' tutorial.