Page 1 of 1

RenPy Not Recognizing JDK...

Posted: Thu Jan 17, 2019 8:08 pm
by VAPMichaelaLaws
Hello!

So I've been at this for months now, but for some reason, even as I update Ren'Py (both in the program AND in downloading the new and latest 7.1.3 exe), redownload the JDK (x64) multiple times, redownload the latest RAPT file to make sure I'm covered... Ren'Py is not recognizing that I have the JDK installed.

What is going on? I've done Android builds before so this shouldn't be an issue, and yet when I attempt to make an Android build, all options to do so are greyed out/unaccessible, as if Ren'Py doesn't know where the heck the JDK is despite having known before. I have builds of Seduce Me up on Google Play and Amazon which need updating FAST because apparently the keyboard is breaking the game, but I can't do anything if I can't even build Android builds anymore.

Image

What am I missing????

Re: RenPy Not Recognizing JDK...

Posted: Thu Jan 17, 2019 11:27 pm
by PyTom
Are you sure it 's the 64-bit JDK? Until this release, Ren'Py required the 32-bit JDK. (Also, make sure it's not the JRE.)

Re: RenPy Not Recognizing JDK...

Posted: Fri Jan 18, 2019 6:10 am
by Remix
Also check the folder is in your environment path...

On windows:
Press [windows button] + R
Type SystemPropertiesAdvanced
(or taskbar Search icon, type env, find the one that says Edit Environment Variables)
Click Environment Variables
Check the one called $Path includes the jdk bin folder (e.g. C:\Program Files\Java\jdk1.8.0\bin)

Re: RenPy Not Recognizing JDK...

Posted: Fri Jan 18, 2019 7:45 pm
by VAPMichaelaLaws
PyTom wrote: Thu Jan 17, 2019 11:27 pm Are you sure it 's the 64-bit JDK? Until this release, Ren'Py required the 32-bit JDK. (Also, make sure it's not the JRE.)
When I updated Ren'Py when I still had the x32 bit JDK, the program literally greyed out everything as if it no longer recognized it. So when I updated and downloaded the x64, I expected it to reroute, but it still won't recognize. I am confused to which it needs now and how to make Ren'Py re-recognize that I have the JDK ( I have double verified that it is the JDK not the JRE)
Remix wrote: Fri Jan 18, 2019 6:10 am Also check the folder is in your environment path...

On windows:
Press [windows button] + R
Type SystemPropertiesAdvanced
(or taskbar Search icon, type env, find the one that says Edit Environment Variables)
Click Environment Variables
Check the one called $Path includes the jdk bin folder (e.g. C:\Program Files\Java\jdk1.8.0\bin)
I have it set to the latest I have (C:\Program Files\Java\jdk1.8.0_201\bin) and Ren'Py STILL will not recognize it.

Re: RenPy Not Recognizing JDK...

Posted: Fri Jan 18, 2019 8:06 pm
by Triority
I'm having the same problem but mines a bit worse - the Install SDK button comes up with :

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 462, in <module>
  File "game/mobilebuild.rpy", line 197, in call
WindowsError: [Error 2] The system cannot find the file specified

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/android.rpyc", line 460, in script
  File "C:\RenPy\renpy-7.1.3-sdk\renpy\ast.py", line 881, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\RenPy\renpy-7.1.3-sdk\renpy\python.py", line 1913, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/android.rpy", line 462, in <module>
  File "C:\RenPy\renpy-7.1.3-sdk\rapt\buildlib\rapt\install_sdk.py", line 234, in install_sdk
    check_java(interface)
  File "C:\RenPy\renpy-7.1.3-sdk\rapt\buildlib\rapt\install_sdk.py", line 47, in check_java
    if not run_slow(interface, plat.javac, plat.path("buildlib/CheckJDK8.java"), use_path=True):
  File "C:\RenPy\renpy-7.1.3-sdk\rapt\buildlib\rapt\install_sdk.py", line 35, in run_slow
    interface.call(args, cancel=True, **kwargs)
  File "game/mobilebuild.rpy", line 197, in call
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 710, in __init__
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/subprocess.py", line 958, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified

Windows-8-6.2.9200
Ren'Py 7.1.3.1092
Ren'Py Launcher 7.1.3.1092
Sat Jan 19 00:05:30 2019

When pressed for some reason

My Java version :

C:\Users\njk98>java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Re: RenPy Not Recognizing JDK...

Posted: Fri Jan 18, 2019 8:53 pm
by Remix
@VAPMichaelaLaws

What version of Ren'Py are you running?
If you have (semi recently) updated, I would advise:
Find the RAPT folder and delete it (maybe copy/save it elsewhere for safe keeping)
Start the Build Android Distribution thing again and let Ren'Py lead the way...

7.1.13 afaik needs fully up to date RAPT

@Triority (aka thread-jacker ;) )
What version of Ren'Py?
Have you updated RAPT?
If 7.1.13 or after, are you using Java JDK (not JRE) 64 bit version 8 with it set on system $path ?

Re: RenPy Not Recognizing JDK...

Posted: Sat Jan 19, 2019 2:06 am
by Triority
Yes, using the latest version of Ren'Py (and it's in PATH). RAPT was downloaded automatically

Path is PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk1.8.0_201\bin;C:\Users\njk98\AppData\Local\Microsoft\WindowsApps;

Re: RenPy Not Recognizing JDK...

Posted: Sun Jan 20, 2019 8:26 am
by Triority
It also fails on a machine that has never had JDK (or Ren'Py) installed on it - some part of the download process of the JDK that Ren'Py initiates fails for some reason (even though Ren'Py states otherwise), and the rest of the options aren't available.

Re: RenPy Not Recognizing JDK...

Posted: Mon Jan 21, 2019 8:43 am
by Remix
Try also advice in the following post from Tom:

viewtopic.php?f=8&t=53484#p503549

Re: RenPy Not Recognizing JDK...

Posted: Mon Jan 21, 2019 5:27 pm
by Triority
Unfortunately not - the problem occurs somewhere before that, although it may work on the other machine
Untitled.png