Unable to resolve this error javac is not recognized as an internal or external command

679    Asked by BenjaminMoore in Python , Asked on Jul 9, 2021

I am new to Java application and having trouble compiling a simple Helloworld program.

JDK 1.7.0 is installed in my Windows 7 and was able to set the path variable but didn't work. I keep getting the following error:

C:UsersIvy>cd 
C:cd java files
C:java files>set path=C:Program Files (x86)Javajdk1.7.0bin
C:java files>javac Hello.java
'javac' is not recognized as an internal or external command, operable program or batch file

Answered by Chris Dyer

To solve java' is not recognized as an internal or external command then you should Check your javac path on Windows using Windows Explorer C:Program FilesJavajdk1.7.0_02in 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 FilesJavajdk1.7.0_02in; . 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.



Your Answer

Interviews

Parent Categories