Compiling and Releasing juk.

 

Prerequisite: For all of these commands, Java must be installed and in your classpath, so that the commands "java", "javac" and "javadoc" can be run from any directory. If it isn't you must add it. Under linux this can be accomplished one way by a symbolic link in your bin directory: cd /bin/:ln-s /usr/local/java/java1.4/bin java, or for windows something like this: SET PATH=&PATH;C:\j2sdk1.4.0-rc\bin

Compiling

From the "src" sub directory, the command
javac -classpath "../lib/kunststoff.jar" @files -d ../classes

This will compile all of the files listed in the file "files" so if you create a new source file, don't forget to add it to there. Alternatively, you can run the "juk/makesrc" shell script.

Compiling juk-gallmage is much the same, just remove the classpath argument.

 

Jar-ing

From the "classes" sub directory, you simply whack all of "com" into a zip file, on GNU systems:

zip -r ../lib/juk.jar com/

Alternatively, you can run the "juk/makelib" shell script.

 

Creating the installer

Download and install IzPack (http://www.izforge.com). You must have 3.0.0 or better, which at the time of writing was still considered unstable, and there are one or two small bugs. This new version however supports the creation of shortcuts under windows which was deemed a vital feature. After you have installed, under linux:

export IZPACK=/home/user/IzPack/bin/compile #This should point to the izpack compile binary
cd release
$IZPACK install.xml -b ./ -k standard-kunststoff

or windows:

cd release
"C:\Program Files\IzPack\bin\compile" install.xml -b ./ -k standard-kunststoff

Where C:\Program Files\IzPack\bin\compile points to the location of the compile binary for IzPack

Alternatively, you can run the "juk/makeins" shell script, or the "juk/makeins.bat".

 

Will. 29 July 2002