Since 1.5 will now be default on most systems you need to tell ant to use 1.4 explicitly.
If jdk1.4 does not come as part of your distribution it can be downloaded from http://java.sun.com .
First set your working directory to where the sources are.
Next ensure your database is up to date.
Code: Select all
$ su
# updatedb
# exit
Code: Select all
$ locate javac
/usr/lib/jdk1.4.2/bin/javac
Code: Select all
$ JAVA_HOME=/usr/lib/jdk1.4.2

Code: Select all
$ ant
After compiling you should end up with a jar file lying about somewhere

For a Windows system most of the above applies. Instead of updating and searching your file database you would need to use the find file sidebar of Explorer (something like Ctrl+F5 or F6?), and environment variables are set from right click My Computer > Properties > Advanced > Environment Variables. You may need to log on and off or restart for changes to take effect. Command prompt is found by hitting [Window Key]+R, typing "cmd" into the box that comes up, and hitting enter.