This should be available in a directory like (current version of Java)
If you already had a command line window open before you changed JAVA_HOME and PATH then you'll need to close the window and open a new one.
A book about Java 5 is still OK if you want to learn the basics, but a lot of new stuff has been added to Java 6, 7 and 8 so at some point you'll want to learn the new stuff, which will not be in your book about Java 5.
And welcome to the Ranch and have fun learning Java!
And you just got your first cow for a greatly presented question from the beginning and for finding the solution on your own
Sophi Rose wrote:I got it to work by doing some extra digging. First I updated to the latest version, then I changed the %JAVA_HOME%\bin to the direct path C:\Program Files\Java\jdk1.8.0_91\bin. I ran the javac -version at command and it returned fine.
I think there is nothing wrong with using HFJ as long as you remember there have been major upgrades since then. The worst thing you can do wrong with HFJ is to buy a brand‑new copy and pay full price
Beware of the Party application in the early chapters. That is incomplete and will not execute.