Javac command not working in my windows 10

510    Asked by bhagwatidubey in Python , Asked on Jul 24, 2021

When I do the javac command it says javac is an unknown command. i set up everything though. or at least i think i did. i am new to java so i dont know much about it. What to do when  javac not recognized windows 10?

Answered by Bernadette Bond

“Javac is not recognized as an internal or external command” is an error often encountered by people trying to compile Java programs on Windows using Command Prompt. It’s might also be encountered when users try to check the current version of the primary Java compiler. When javac not recognized windows 10: 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