2008-02-29 10:25:55 UTC
Here is how I built HexTD. This worked in both Linux and Windows.
-Install the jdk if you don't have it allready
-checkout hextd. You really only need the src folder. I used the command svn co
https://hextd.svn.sourceforge.net/svnroot/hextd/trunk/src hextd
-download
https://svgsalamander.dev.java.net/binaries/svgSalamander-tiny.jar and put it in a folder where it won't get moved (like the jdk/lib folder, the game folder, etc)
-set up your java_home, path, and class path if they aren't already. Here are the lines from my ~/.profile in linux (you'll need to change the JAVA_HOME path if yours is different and you'll probably need update the path of the svgSalamander-tiny.jar):
export JAVA_HOME=/usr/java/jdk1.6.0_04
export CLASSPATH=.:~/.jar/svgSalamander-tiny.jar
export PATH=$JAVA_HOME/bin:$PATH
you'll need to set those up in windows if you use windows (you can get to the environment variables by right clicking on your "My Computer" and clicking properties then going to the "Advanced" tab and clicking the "Environment Variables" button. Note that in windows you use ; instead of : to seperate items in the path and class path lists and instead of $PATH and $JAVA_HOME you use %PATH% and %JAVA_HOME%)
-once these are done you'll need to open a new terminal or command prompt (if you use an already running one the new variable changes won't be in effect)
-now cd into the hextd/src folder or the hextd folder if you used the svn co command I used in my example.
-now to compile hextd in linux you just need to type "javac hextd/HexTD.java" or in windows "javac hextd\HexTD.java"
-now to run hextd you just type "java hextd/HexTD" in both windows and linux
-if you want to set up a shortcut you put "java hextd/HexTD" as the command and you'll need to set up the working directory to be either the hextd/src folder or the hextd folder if you used my svn co commnad
I hope this helps. Let me know if you have any questions.
-Darren