golf umbrella
golf umbrella

Reputation: 263

How do I find where Java is installed on Windows 10?

I recently installed Java (Java Runtime 1.8.121) to my machine. I need to set up JAVA_HOME and set the variable from the Java folder where it installed.

Everywhere I have looked online says the Java folder should be located in Program files (x86), however, it is nowhere to be found. Its not in program files (x86), not in program files. I wasn't able to choose a destination when it was installed as Software center was used. It simply completed the installation.

Can someone please help me find where the Java folder is so I can set up JAVA_HOME???!

Upvotes: 6

Views: 42604

Answers (2)

JonR85
JonR85

Reputation: 730

Open a command prompt

type: wmic product where "Name like '%%Java%%'" get installlocation,Name

This command can take a minute to complete. But should return something like this.

enter image description here

Edit: The benefit of this command, is that it doesn't rely on any system environment variables. It searches for installed programs that have the word 'Java' in the name. It won't return extra files or locations.

Upvotes: 7

xerx593
xerx593

Reputation: 13261

Upvotes: 8

Related Questions