0

Whenever I open cmd and enter 'javac', it gives me the the following error "javac is not recognized as an internal or external command, operable program or batch file."

But when I run cmd in administrative mode it works just fine.

I am using windows 10 Pro and jdk version is 8. I have added jdk path in environment variables as JAVA_HOME.

  • Basically what I am trying to do is to run some script with Jenkins, so when I tried to run javac after project was built, it gave me this error. So,I went into windows services and gave Jenkins service administrative control for now as I am using it in offline setting. This has stopped the Jenkins build error at least. Still haven't solved the actual problem though – Safeer_Raees Feb 4 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.