Ok so what I have done so far using windows 10. Have created a environmental variable to point the jdk.
C:\Users\mcatee>echo %java_home%
C:\Program Files\Java\jdk1.8.0_131
Then added this to my path variable
%Java_Home%\bin;
Wow so frustrating now it works. HAHA Ok gonna post this anyways. The problem I was making was switching back and forth from
the GUI to change variables and then going back the console(command prompt) and trying to run the commands, javac. Each time you change a variable in the
GUI you need to close the console and reopen. Watched three different videos, each was different, which had me changing the variables.
Talking about path and classpath ect... really jumbled my brains a bit.
If I finally understand this please correct me if Im wrong.
Path variable simply tells the computer where the java.exe and javac.exe are located. So when the command is executed if that
.exe file doesnt exist in the current folder it then checks all the path variables for that .exe.
Ok now for CLASSPATH if I finally understand this corrected this is just java related, not system related. Use classpath when
multiple class files are located in different locations ie different folders. So like the path variable for the system, Classpath tells
Java where to locate the needed Class files.
Do I have all this correct now TY
What a frustrating 4 hours