All the libraries required for running the program will be inside “/dist/lib” directory. Inside dist, there will be the final JAR. This will create a folder called “dist” in your project directory.
Just right click on your project from Projects window and then select “clean and build”. NetBeans : NetBeans provide option for making JAR file very easily. This is pretty simple if you are using an IDE like NetBeans. The first step is making a JAR file from your java code.
Step 1 : Make JAR file for your application