Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'javac is not recognized' , Java 7-Windows 8 [duplicate]

I've been trying to setup javac, but I keep getting the dreaded error message

javac is not recognized as an internal or external command, operable program or batch file

Ive added the location of javac (C:\Program Files\Java\jdk1.7.0_17\bin) to the Path in Environment Variables.. restarted the console etc, but the error persists. Am I missing something here?

like image 231
seeker Avatar asked Nov 28 '22 17:11

seeker


1 Answers

I had the same issue as yours and I've fixed like this:

In the system variables I made a new variable, called it JAVA_HOME, and I set the value to: C:\Program Files\Java\jdk1.7.0_17. After that, I edited Path, which is also in the system variables and I added : ;%JAVA_HOME%\bin.

I hope it will help you !

like image 108
Survivor Avatar answered Dec 11 '22 01:12

Survivor