RenPy Not Recognizing JDK...

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
VAPMichaelaLaws
Regular
Posts: 196
Joined: Mon Dec 10, 2012 2:11 am
Completed: Check Signature!
Projects: Check Signature!
Organization: Seraphim Entertainment
Tumblr: thebunnyofevil
Contact:

RenPy Not Recognizing JDK...

#1 Post by VAPMichaelaLaws » Thu Jan 17, 2019 8:08 pm

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????
Voice Actress | Singer | Writer | Producer | Director
http://www.michaelaamandalaws.com/
--------
Completed Projects: My Teacher (NaNoReno2013), Pizz'Amore, My Lady, Our School Love (Otome Audio CD), Our Honeymoon (Otome Audio CD), Seduce Me, Maid With Perfection (NaNoReno2015), Blind Love (ILUjam 2015), Love And Romance: A Study Of Intimacy, Seduce Me 2: The Demon War, Remember, Remember
Projects Still In Production: All For You

User avatar
PyTom
Ren'Py Creator
Posts: 15447
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: RenPy Not Recognizing JDK...

#2 Post by PyTom » 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.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Remix
Eileen-Class Veteran
Posts: 1375
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: RenPy Not Recognizing JDK...

#3 Post by Remix » 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)
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Develop Cartoon Speech Bubble dialogue
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

User avatar
VAPMichaelaLaws
Regular
Posts: 196
Joined: Mon Dec 10, 2012 2:11 am
Completed: Check Signature!
Projects: Check Signature!
Organization: Seraphim Entertainment
Tumblr: thebunnyofevil
Contact:

Re: RenPy Not Recognizing JDK...

#4 Post by VAPMichaelaLaws » Fri Jan 18, 2019 7:45 pm

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.
Voice Actress | Singer | Writer | Producer | Director
http://www.michaelaamandalaws.com/
--------
Completed Projects: My Teacher (NaNoReno2013), Pizz'Amore, My Lady, Our School Love (Otome Audio CD), Our Honeymoon (Otome Audio CD), Seduce Me, Maid With Perfection (NaNoReno2015), Blind Love (ILUjam 2015), Love And Romance: A Study Of Intimacy, Seduce Me 2: The Demon War, Remember, Remember
Projects Still In Production: All For You

User avatar
Triority
Regular
Posts: 36
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2
Projects: Welcome To... Chichester
Organization: Triority
itch: triority
Location: England
Contact:

Re: RenPy Not Recognizing JDK...

#5 Post by Triority » Fri Jan 18, 2019 8:06 pm

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)

User avatar
Remix
Eileen-Class Veteran
Posts: 1375
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: RenPy Not Recognizing JDK...

#6 Post by Remix » Fri Jan 18, 2019 8:53 pm

@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 ?
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Develop Cartoon Speech Bubble dialogue
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

User avatar
Triority
Regular
Posts: 36
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2
Projects: Welcome To... Chichester
Organization: Triority
itch: triority
Location: England
Contact:

Re: RenPy Not Recognizing JDK...

#7 Post by Triority » Sat Jan 19, 2019 2:06 am

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;

User avatar
Triority
Regular
Posts: 36
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2
Projects: Welcome To... Chichester
Organization: Triority
itch: triority
Location: England
Contact:

Re: RenPy Not Recognizing JDK...

#8 Post by Triority » Sun Jan 20, 2019 8:26 am

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.

User avatar
Remix
Eileen-Class Veteran
Posts: 1375
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: RenPy Not Recognizing JDK...

#9 Post by Remix » Mon Jan 21, 2019 8:43 am

Try also advice in the following post from Tom:

viewtopic.php?f=8&t=53484#p503549
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Develop Cartoon Speech Bubble dialogue
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

User avatar
Triority
Regular
Posts: 36
Joined: Fri Jul 20, 2018 1:28 pm
Completed: Welcome To... Chichester 0, 1,2 OVN 1, OVN 2
Projects: Welcome To... Chichester
Organization: Triority
itch: triority
Location: England
Contact:

Re: RenPy Not Recognizing JDK...

#10 Post by Triority » Mon Jan 21, 2019 5:27 pm

Unfortunately not - the problem occurs somewhere before that, although it may work on the other machine
Untitled.png

Post Reply

Who is online

Users browsing this forum: oro121, tokya2502