+ 4

What am I doing wrong when I type javac on command prop and it says it's not recognized as internal or external command, operable program or batch file?

5th Aug 2015, 9:25 PM
Juuso Varho
Juuso Varho - avatar
11 Respuestas
+ 21
You have to set up a path variable Step 1 : Right Click on MyComputer and click on properties . Step 2 : Click on Advanced tab or advanced system settings Step 3: Click on Environment Variables Step 4: Create a new user variable Step 5: Enter the Variable name as JAVA_HOME and the value to your jdk bin path i.e. c:\Programfiles\Java\jdk-1.6\bin and NOTE Make sure you start with .; in the Value so that it doesn't corrupt the other environment variables which is already set. Step 6 : Follow the Above step and edit the Path in System Variables add the following ;c:\Programfiles\Java\jdk-1.6\bin in the value column. To test, open up a command prompt and type in "java" (with no quotes). If successful, you should see a list of possible commands. *credit goes to stack overflow for the exact steps.
11th Aug 2015, 5:49 PM
Keenan Obayuwana
Keenan Obayuwana - avatar
+ 7
On windows 10 you need the path to the 'bin' folder inside the JDK folder with a semicolon (;) before the address. (ex- ";C:\Program Files\Java\jdk1.8.0_73\bin")
7th Mar 2016, 12:16 PM
ziv mor
ziv mor - avatar
+ 3
First install jdk ( not Java runtime only). Once you are done installing then check the path in your environment variable as said. Make sure you install jdk otherwise the command does not works in CMD as it is not a DOS opearation
2nd Nov 2016, 5:41 PM
Sandeep Chatterjee
+ 2
Hi everyone! If someone has the same problem as I had (javac is not recognized as an internal or external command, operable program or batch file), do this: "Check your javac path on Windows using Windows Explorer C:\Program Files\Java\jdk1.7.0_02\bin and copy the address. Go to Control Panel. Environment Variables and Insert the address at the beginning of var. Path followed by semicolon. i.e C:\Program Files\Java\jdk1.7.0_02\bin; . Do not delete the path existent, just click in and go to the left end and paste the line above. Do not try anything else, because you just need to link your code to "javac.exe" and you just need to locate it. Close your command prompt and reopen it,and write the code for compile and execution." Copyright from: http://stackoverflow.com/a/8518438
18th Nov 2015, 5:41 PM
Alexey Storozhenko
Alexey Storozhenko - avatar
+ 2
u need to add the path of ur jdk...in the environment variables
24th Jun 2016, 9:14 PM
Mayank Goswami
Mayank Goswami - avatar
+ 1
use ';' (semicolon) before the path address while adding path. then try it.
6th Apr 2016, 3:56 AM
R Ashwin Kumar
R Ashwin Kumar - avatar
+ 1
See the Basic Concepts Installing the JDK of sololearn, in that see the JDK & PATH chapter / section clearly once again it may help you
3rd May 2016, 3:03 PM
Keerthy Vardhan
Keerthy Vardhan - avatar
0
jpk detects viruses and unwanted jpk
14th Aug 2016, 1:48 PM
Tracey Jones
Tracey Jones - avatar
0
class path is not set
24th Aug 2016, 7:24 PM
Yuganshu Mahajan
Yuganshu Mahajan - avatar
0
Java path needs to be set in environment variables.
5th Nov 2016, 8:27 AM
Naveen
0
Set path for it 1. Open your command prompt 2. Add " Set path=PASTE YOUR JDK BIN LOCATION" 3. Press enter then try again. it will work
6th Nov 2016, 11:43 AM
Whatsapp Videos
Whatsapp Videos - avatar