I have a program which consists of two simple Java Swing files.
How do I make an executable JAR file for my program?
If you use maven, add the following to your pom.xml file:
org.apache.maven.plugins maven-jar-plugin 2.4 com.path.to.YourMainClass
Then you can run mvn package. The jar file will be located under in the target directory.
mvn package