Deliver Your Java Application in One-JAR™!

Copyright 2004-2007 by P. Simon Tuffs, All Rights Reserved.





Quick Links:

download one-jar SDK

one-jar at sourceforge.net

simontuffs.com

licensing information

SourceForge.net Logo

Downloads

The following downloads are available in the distribution:

DownloadDescriptionExecutable?
one-jar-sdk-0.96.jar The Software Developer Kit, delivered as a self-extracting One-JAR application. Requires Ant for rebuild. Contains source-code for the example application, and everything Ant that you need to start building One-JAR applications.Yes
one-jar-example-0.96.jar A test-case for various scenarios using One-JAR to load resources, URL's and classes. Contains source code for the examples.Yes
one-jar-dll-0.96.jar An example of using Windows Native Libraries (DLL's) with One-JAR. Contains C/C++ source code and a mingw make setup.Yes
one-jar-ant-task-0.96.jar The Ant taskdef code to support a <one-jar> task. Also contains XML definitions for the Ant taskdef, and a macro version of a one-jar builder. Contains source code for the Ant task.No
one-jar-boot-0.96.jar The low-level JarClassLoader and other One-JAR bootstrap mechanisms Contains source-code for the One-JAR bootstrap classes.No

Note: the executable Jar files are command-line tools: do not try to execute them on Windows by double-clicking the file since you may get unexpected results. Open a DOS command shell and execute them using the java -jar command.

Which One Do I Need?

  • For a quick demo of One-JAR in action, download and run one-jar-example-0.96.jar. Run using java -jar one-jar-example.jar
  • If you are ready to start developing a One-JAR archive, download and run one-jar-sdk-0.96.jar. This is a self-extracting archive, so choose carefully where you run it. It contains everything you need to build and test a simple "Hello One-JAR" example that demonstrates the use of /main/main.jar and /lib libraries. You will also need to have access to Ant 1.6.5 or later to build the example. The SDK can rebuild itself.
  • Once you are up-to-speed with One-JAR, the one-jar-ant-task-0.96.jar contains just the Java class for the <one-jar> Ant task, as well as a taskdef. (This file is also delivered with the SDK).
  • The minimum set of Java sources and pre-compiled JDK 1.4 classes needed to build a One-JAR archive by hand are contained in one-jar-boot-0.96.jar. One-JAR is very compact: the class files have an uncompressed footprint of around 40KB.

If you like One-JAR then you might want to check out some of the other Open-Source projects developed by simontuffs.com:
soap-stone at sourceforge.net XML Instance Generator Eclipse JAR Plugin Yet Another Compiler Compiler Language