canmurat
canmurat

Reputation: 159

Java jdk path setting in windows

I delete jdk\bin path from environment variables path in windows but when ı write "java -version" in anywhere , it still returns true results . How ?

Upvotes: 1

Views: 206

Answers (3)

Owen Cao
Owen Cao

Reputation: 8183

Just type where java in cmd console, and you'll get where it is. And as it shows, I think you need check this location(C:\Windows\System32), when you instal java, Java exe files are copied to windows System32 folder, java.exe, javaw.exe and javaws.exe are available there.

Upvotes: 1

Sitam Jana
Sitam Jana

Reputation: 3129

Restart your system and try again. In case, it's still pointing after restart, please check the path variable correctly. Might be some referrence still exist in either system/user path variable and thus giving the result.

Upvotes: 0

peter
peter

Reputation: 15139

You can use the where command, to check which java application is executed when you run java -version

Is there an equivalent of 'which' on the Windows command line?

Upvotes: 3

Related Questions