Saturday, October 22, 2016

How to build a fat jar using Netbeans ?.


1.    The first thing you have to do is clean and build the project.




2.    Then go to the Files view of the Project and open the build.xml file.

3.   Double click on the build.xml file and add below lines just before the </project> line.




Downlod File :  build.txt


     4.      Change value in second line of the code as per your project name.



     5.      Save it and right click on build.xml and choose Run Target and then Other Targets and finally   click on Package-for-store.



   
      6.      Now you can go and check just like dist folder there will be a store folder which will be containing your final complete jar including all of your dependent libraries.










No comments:

Post a Comment