Utool.jar
to your
classpath. But there may be a point at which you want to recompile
Utool. For such cases, we will now document how to unpack the Utool
source distribution and recompile it.Utool-<version>.jar
which you probably downloaded
from the website only contains the compiled class files that are
necessary for running the programme. This is the standard distribution
because it is pretty small, and thus downloads and loads quickly.Utool-src-<version>.jar
, and is some 4 megabytes in
size. In addition to the Utool classes, it contains the source code of
Utool, all classes of the iText, JGraphT, JGraph, and Getopt libraries
that we use, and the javacc and testng Jars that are used in compiling
Utool. The files in the source distribution Jar are in exactly the
same locations as in the ordinary Jar, so in particular you can use
the command java -jar Utool-src-<version>.jar
to run Utool. In
addition, you need the Java JDK 5.0 or higher, and you need Apache Ant
1.6 or higher.$ jar xf Utool-src-<version>.jar
$ ant prepare
src
. If you add new classes, you
may have to edit the Ant build script in build.xml.$ antThis will create the file
Utool-<version>.jar
in the directory
build/lib
, which you can run using java -jar
as before.