To compile you have to first download Java JRE/JDK.
http://java.sun.com/javase/downloads/index.jsp
In there choose Java SE Development Kit (JDK), the second one.
Choose the correct platform, your coumputer could be windowsx64 so check
Under Java SE Development Kit 6u12
there is a link to:
jdk-6u12-windows-i586-p.exe
Download it and install.
If it cannot find tools.jar and Java cannot be recognised:
Go to my computer and go to progam files and the java folder
Then click on jdk 1.6
Go to bin folder, in there right click on anything and choose properties
Copy the location, ex: C://....
Go to control panel, go to system and maintenece
Look for advanced option, in there click on Environment variables
Choose the path one and click edit
add a semicolon to whatever is already there and paste the location to what you copied.
Hit ok and click compile.bat, if it does not work then restart computer and try again....