+ 1
How come every time i type in "javac ExampleProgram.java" in the command window prompt it says "'javac' is not recognized as an
Please help I don't know what to do and i really want to learn how to code.
15 Answers
+ 1
Several possibilities:
1. You didn't have your JDK installed. Download and install Oracle JDK or OpenJDK.
2. You didn't correctly set the environment variable. In Windows, set PATH; in Linux, configure $PATH.
0
you have to add your javac in the windows environment variables
0
how do i do that?
0
Click the windows button and type environment variables and you should see with the same name
0
Click it and o the the second box got to path
0
Click edit path and add the location of the Java folder
0
okay so i did that but now it gives me a message saying "javac: file not found: ExampleProgram.java" even though i already made the ExampleProgram.java file, what do i do?
0
because your doing it wrong
0
you need to located the entire java JDK folder
0
I set the Path to C:\Program Files\Java\jdk1.8.0_121\bin and it seems like it worked because i received a different message but now it says javac: file not found: ExampleProgram.java so it seems like I'm stuck again
0
one the command prompt have you located where the file is
0
no how do you do that?
0
type cd\ enter
then cd c:\... the file location
0
There we go it finally worked thank you so much for helping me out here now I can finally move on with the next step! :D
0
no problem