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.
1. Please close commander and open it again
2. Type echo %PATH%
3. Post here what you got as an output
Sophi Rose wrote:
Does your platform really have JDK version 1.5 installed or is that from an example in an old book/webpage? That version came-out 10+ years ago.
@Ron McLeod It says it's version 5 (for some reason it reads it at 1.5). Should I not worry about what the book says and just get latest?
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.
Also, thank you everyone for your help. Time to start learning!