Deploying a Java Program
4 answers
The easiest for you is to export the program as a "Runnable JAR file". Then your friend does it from the command line:
java -jar MyApp.jar
Probably the easiest way for your friend is that you take the above jar file and deploy using WebStart . It is a cross platform. Your friend simply uses their web browser to navigate to the web page that hosts the app and clicks on the link.
+1
a source to share
Create a JAR file (it's in the export menu) and send it to them. JAR files contain all the classes in a Java application and a manifest that specifies things like the one that is the main class. If your application depends on other 3rdparty libraries, you need to include them as well; it is possible to link them in a JAR file, but this is non-trivial
0
a source to share