'javac' is not recognized as an internal or external command, operable program or batch file.
This error might occur as JDK is not set in path System variable in environment variable
This error might occur as JDK is not set in path System variable in environment variable
To set this find out where Java is installed on your system
Let's say you have Java 7 installed on your system , copy bin directory path as below :
Now access the path variable in environment variable from :
Control Panel\System and Security\System
Set Java_Home as
then set path variable value as : %Java_Home%;(current value in path)
OR
set path directly as
If Still it does not work and throw same error , Access command line
and check the path with path command
Now see if
If it is not there then set path from command line using command
set path =%path%;
Now check again the value of path variable ,
Try executing program again , it should work now..
No comments:
Post a Comment