One-JAR(TM) is a simple solution to a vexing problem in Java: how to distribute an application as a single jar-file, when it depends on multiple other jar-files. One-JAR uses a custom classloader to discover library jar files inside the main jar.
License
BSD LicenseFollow One-JAR(TM)
Other Useful Business Software
Auth for GenAI | Auth0
Easily implement secure login experiences for AI Agents - from interactive chatbots to background workers with Auth0. Auth for GenAI is now available in Developer Preview
Rate This Project
Login To Rate This Project
User Reviews
-
After dealing with useless JAR files created by supposedly-professional quality IDEs, I found One-JAR. At this point, I had abandoned the non-functional IDEs, the ANT/MAVEN/GRADLE plugins that didn't work in mysterious and difficult-to-debug ways, and pretty much everything beyond the raw JAVA command line tools (which, although they did not do what I wanted, at least did what they said they did). I followed the command line instructions. They are a little out of date (there is no 'boot-manifest.mf' file to edit, so it must be created, there is no 'src' directory to delete, the Java 11 tools ignore the existing MANIFEST.MF so the boot-manifest.mf file needs to specify "Main-Class: com.simontuffs.onejar.Boot" as well, and there's some leftover cruft from testing / development that is unJARed into the root directory). All of that was straightforward enough to figure out, and alter appropriately. And it works. I have a single jar file that runs my application, which is what I wanted four days ago. Thank you, Simon, for this project. Thank you very much!
-
Does its job really good, hope it is still under active maintenance (developement)
-
The One-Jar approach is fairly easy to implement and makes it very easy to distribute applications to users.
-
One-jar works wonderful.
-
Thanks for good program!