Where is Java hiding on my PC?

5

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?

cybermotron

Posted 2012-06-14T05:26:01.997

Reputation:

Type echo %PATH% in command promt and search for java installation path – svlada – 2012-06-14T05:29:22.617

Try this solution: http://stackoverflow.com/questions/3930383/jre-installation-directory-in-windows

– Blender – 2012-06-14T05:30:09.823

Answers

13

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.

Joey

Posted 2012-06-14T05:26:01.997

Reputation: 36 381

This is easily the best way to do this on windows I have seen. – Peter Wilkinson – 2012-06-14T05:46:48.070

1Wow... thank you... that really did the trick! Plus I learned you can for loops on the command line! – None – 2012-06-14T06:31:05.623

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 – 2012-06-14T07:06:39.360

2

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.

Thomas

Posted 2012-06-14T05:26:01.997

Reputation: 448

1

Do a file search for java.exe.

Peter Wilkinson

Posted 2012-06-14T05:26:01.997

Reputation: 173