+ 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.

18th Feb 2017, 2:21 AM
Marlon Yanez
15 Respostas
+ 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.
18th Feb 2017, 3:25 AM
Jian-hua Yeh
Jian-hua Yeh - avatar
0
you have to add your javac in the windows environment variables
18th Feb 2017, 2:23 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
how do i do that?
18th Feb 2017, 3:23 AM
Marlon Yanez
0
Click the windows button and type environment variables and you should see with the same name
18th Feb 2017, 3:25 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
Click it and o the the second box got to path
18th Feb 2017, 3:25 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
Click edit path and add the location of the Java folder
18th Feb 2017, 3:25 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
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?
18th Feb 2017, 3:37 AM
Marlon Yanez
0
because your doing it wrong
18th Feb 2017, 4:44 AM
Hyper89
0
you need to located the entire java JDK folder
18th Feb 2017, 4:45 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
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
18th Feb 2017, 4:50 AM
Marlon Yanez
0
one the command prompt have you located where the file is
18th Feb 2017, 4:52 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
no how do you do that?
18th Feb 2017, 4:53 AM
Marlon Yanez
0
type cd\ enter then cd c:\... the file location
18th Feb 2017, 4:55 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
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
18th Feb 2017, 4:59 AM
Marlon Yanez
0
no problem
18th Feb 2017, 5:00 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar