Just for the record. If all you want to do is actually just do some minor editing, compile and run, you can do nicely with your favorite editor along with javac from the Java Development Kit (as opposed to the Java Runtime).
Have a look at the Java Tutorial which tells you all you need to know. http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html