If you want a command line compiler, use javac as kfc469 suggested. If you want a visual development environment (aka IDE), download Eclipse and you will never go back to using anything else, trust me. Eclipse is an amazing tool for development, and is also 100% free. THe commercial IDE market will be dead in a few years because of Eclipse, if it isn't dead already.
SAFX