Reputation: 4679
I hate asking this, but I've never been able to find my Java folder on my current PC. I'd like to find it so I could use a keystore command to find my SHA and just to know where it is. I found a SHA number through gradlewindow/signing report, but now the api page isn't accepting it so I wanted to check through a 'keystore' command, which you apparently have to call with the command line folder path set somewhere in the Java folder. Here are both my program files. I've been successfully developing and publishing my android game for a year on this PC, so I figured I must have a Java folder somewhere. The toolbar search box hasn't helped (it never does), it just gives me website suggestions through Bing.
Upvotes: 0
Views: 32165
Reputation: 1
When you download the JDK first you should press on that JDK icon after its downloaded and run it. While it's running it will ask where you want that file to be downloaded and by default, it will download to your C:/ drive.
Upvotes: 0
Reputation: 1069
Try this:
Go to Start -> Control Panel -> Java -> View
In the 'Path' column you can get the location.
Someone has already posted it here: https://superuser.com/questions/1148677/finding-location-java-home-in-windows-10/1148743 , please refer.
Upvotes: 1
Reputation: 998
Android Studio and Android do not use a java from Oracle or Sun but use OpenJDK that is an open sourced java instead, so there won't be a java folder under Program Files if you didn't installed java for other uses. Android Studio's java can be found in C:\Program Files\Android\Android Studio\jre.
Upvotes: 7
Reputation: 2923
This is the path on my Win 10 machine: C:\Program Files\Java\jre1.8.0_162.
Upvotes: 0