Oracle's Tutorial has a description of how to compile and run your program including links to the download and a discussion of things that can go wrong (and ho to fix them).

Post if you get stuck....