Getting Java installed and set up on your computer can be a bit of a lengthy process. In addition, there are some differences between operating systems.
Here's a link I usually give to my new tutoring students when they're getting set up. It covers instructions for Mac, Windows and Linux, and it explains things pretty well.
Feel free to post here if you need help.