Java Map Editor, errors
Posted: Tue Oct 26, 2004 1:42 am
Java map editor does not compile under javac 1.5, you need 1.4.
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.
Next find where the 1.4 java compiler is kept on your system
You should see something like that... I only have 1.5.0 so this is expected output. If you don't see a line that says .../1.4.x/bin/javac you do not have jdk1.4 installed, you need to download it and install it from http://java.sun.com . Next set your $JAVA_PATH to where the 1.4.2 is:
Now ant wil know where to look for a compiler
. Finally, run ant!
ant is like make but uses xml and is for java. If you don't have ant it can be downloaded from http://ant.apache.org/bindownload.cgi .
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.
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.