Well, I took a course in Java. The software that I used from this site
http://java.sun.com/products/jdk/1.2/
you can go there and download it. Then read the instructions how you can use to compile your source codes.
You can use notepad to write your source coded and use dos to compile and run.