1

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

2
  • 1
    Have you opened a new terminal? If not, you'd still have the environment variables from before you deleted it from your settings. Commented May 17, 2014 at 13:57
  • Yes ı opened new terminal but it returns same result Commented May 17, 2014 at 14:00

3 Answers 3

3

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?

Sign up to request clarification or add additional context in comments.

2 Comments

Yes after this "where java" , result : C:\Windows\System32\java.exe
you can look into stackoverflow.com/questions/8223511/… and stackoverflow.com/questions/11063831/… to find an answer how it got there. Probably you can simply remove it.
1

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.

2 Comments

Yes , after "where java" , result is C:\Windows\System32\java.exe
Ok, you can delete them or replace with other version's, then open a new terminal and check the version.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.