+ 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?
11 Antworten
+ 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.
+ 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")
+ 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
+ 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
+ 2
u need to add the path of ur jdk...in the environment variables
+ 1
use ';' (semicolon) before the path address while adding path. then try it.
+ 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
0
jpk detects viruses and unwanted jpk
0
class path is not set
0
Java path needs to be set in environment variables.
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