Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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: stackoverflow.com/questions/3930383/… –  Blender Jun 14 '12 at 5:30
    
check this :stackoverflow.com/questions/1678520/… –  nibha Jun 14 '12 at 5:31
add comment

3 Answers

up vote 12 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
1  
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). –  Јοеу Jun 14 '12 at 7:06
add comment

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
add comment

Do a file search for java.exe.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.