Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cmd 'where java' produces two results

When I do where java in the cmd terminal, I get the following results:

C:\Program Files\Java\jdk1.7.0_25\bin\java.exe
C:\Windows\System32\java.exe

Is it meant to do that? I thought it should only produce the first result as that's what's set in my Path environmental variable. I am using Windows 8 if that helps.

like image 230
obsessiveCookie Avatar asked Nov 11 '22 21:11

obsessiveCookie


1 Answers

C:\Program Files\Java\jdk1.7.0_25\bin\java.exe is the entry you get because you defined it in the Path.

You are getting the second one, because you have a java.exe in your System32 folder. I guess the installer did this.

like image 144
Philipp Sander Avatar answered Nov 15 '22 00:11

Philipp Sander