Page 1 of 1

[Solved] Renpy not recognizing JDK

Posted: Thu Feb 07, 2019 3:32 am
by Karmadon
Preemptive announcement: Before making this post I have went through any post here and on the web that deals with Renpy not recognizing the JDK, and I still cannot figure this out. I would greatly appreciate any assistance.

The problem:
All buttons when trying to build an Android port via Renpy are grayed out, and the immortal message of "A 64-bit Java 8 Development Kit is required..." is displayed.

Things I have tried:
0. Checking my Renpy is the latest stable release - it sure is.
1. Installing the Java 8 64-bit Development Kit. Installs silently for some reason, but does install, and is recognized when I try to run the Java uninstalling tool.
2. Adding said JDK bin folder to PATH - both user and system.
3. Verify JDK is installed and PATHed by running "javac" in CMD.
4. Adding javapath to PATH instead.
5. Installing the 32-bit version instead (which doesn't install silently), adding that to PATH.
6. Installing the latest JDK, Java 11, and adding that to PATH instead.

What else could I be missing?
Please and thanks!

Re: Renpy not recognizing JDK

Posted: Thu Feb 07, 2019 12:58 pm
by rames44
Just a guess, - in addition to have put the java bin directiory in the path, is JAVA_HOME set to the root of the Java install?

Re: Renpy not recognizing JDK

Posted: Thu Feb 07, 2019 5:18 pm
by Karmadon
rames44 wrote:
Thu Feb 07, 2019 12:58 pm
Just a guess, - in addition to have put the java bin directiory in the path, is JAVA_HOME set to the root of the Java install?
Solved! There was no such variable to begin with, but adding that with the Java path to system variables solved the issue.
Thanks so much!

Re: [Solved] Renpy not recognizing JDK

Posted: Fri Feb 08, 2019 12:29 pm
by rames44
The JAVA_HOME variable is used by a LOT of stuff to see if Java is installed (and to find it) but for some reason the installers don’t tend to set it. Never understood that, because it’s part of the Oracle documentation, as opposed to having been made up by the community or some such.

Glad you’re up and operating.