hello everyone!
I am brand spanking new to programming with java. That being said, I have found a couple tutorials that I am walking through on the internet to get acquainted with java. But I am having trouble with compiling the code.
I have opened a cmd prompt and navigated to where I saved the program. I then followed the directions and ran the command "javac FirstJavaProgram.java".
I then get an error of 'javac' is not recognized as an internal or external command, operable program or batch file.
The tutorials said this could happen and then gave steps to follow to set the java path.
The command is as follows: set path=C:\Program Files\Java\jre.1.8.0_271\bin.
That command didn't work. I still received the same error as before. So I googled how to set the path and followed the prompts to go through the properties window.
Right clicked computer, clicked Properties, clicked Advanced System Settings, clicked Environment Variables, found PATH under System Variables, and changed it.
After all that I went back into my cmd prompt and tried to run the program again. With still the same result. (bangs head on desk).
Can someone tell me what I'm doing wrong? Is is something blatantly obvious that I am missing?
Thank you for any help!!