I have a java application from which I create a jar that relies on many third-party banks, what is the best / common way to package this application to distribute the end user?
The best way is to use a build tool like Maven2 or something similar, and use it to manage your dependencies and all-in-one package.
Otherwise, you are mostly stuck with manifest files. Although, IDEs like Eclipse or NetBeans may help you a bit.
Packing method. There are two ways:
wrap as an executable: This is common if you know the supported platform and end the Jar in the executable. And distribute it. Something like this http://launch4j.sourceforge.net/ (I have not used this, but there is a similar shell)
Join all the Jar and provide a script:. You can use the Maven Assembly plugin to merge just one Jar . In doing so, you can distribute bat and .sh files for systems based on Windows and Linux, respectively. If you see that Glassfish is distributed in a similar way. These scripts have an executable command and often take parameters for different types of behavior.
bat
.sh
You can also use Fat Jar Eclipse Plug-In
OR
Packing and Deploying Java Desktop Applications on NetBeans
Source: https://habr.com/ru/post/1334968/More articles:Given a DateTime, how do I get a range of times with the same date in a particular time zone? - timezoneAppFabric caching the local cache does not work for us ... What are we doing wrong? - cachingUnit Testing Practice with Linq to SQL - c #Debugging in netbeans (java) - javaStored procedure will not return 0 - c #Sorting a deck of cards by suit, and then rating - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1334970/appengine-send-files-to-the-blobstore-using-http&usg=ALkJrhh7Tohh1XuB-Ku7Embwu2AQ6WlH_AStar rating for iphone - objective-cjQuery CSS not applicable - jqueryHow to specify overlapping rules in git-svn - gitAll Articles