Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my efforts to root out the mysterious Java 1.5.0_11 installation I have hiding somewhere on my PC, I completely uninstalled Java.

Now, a search in Explorer turns up nothing, but on the command prompt, if I type "java", it's still there.

If I type java -version it says java version 1.5.0_11.

How do I find it?

share|improve this question

migrated from Jun 14 '12 at 9:15

This question came from our site for professional and enthusiast programmers.

Type echo %PATH% in command promt and search for java installation path – svlada Jun 14 '12 at 5:29
Try this solution:… – Blender Jun 14 '12 at 5:30
check this… – nibha Jun 14 '12 at 5:31
up vote 13 down vote accepted

Use where java to find out where it is. Or

for %x in (java.exe) do @echo %~$PATH:x

Usually it resides in %ProgramFiles%\Java, though.

share|improve this answer
This is easily the best way to do this on windows I have seen. – Peter Wilkinson Jun 14 '12 at 5:46
Wow... thank you... that really did the trick! Plus I learned you can for loops on the command line! – cybermotron Jun 14 '12 at 6:31
Well, that's not really a loop. It's just necessary because you cannot use the %~$VAR:x trick without a for variable (or a numbered argument in a batch file or subroutine). – Joey Jun 14 '12 at 7:06

If you're under Windows, launch Java, go into Task Manager, right click on the java.exe process, "Open File Location". This should locate it.

share|improve this answer

Do a file search for java.exe.

share|improve this answer

You must log in to answer this question.