JDK Problem

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
Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

JDK Problem

#1 Post by Lightworker »

I came up with something from my last post. I just moved all my files and code to another computer. However, I have a strange problem; I cannot build the android project. Ren'Py looks for javac at $JAVA_HOME/bin/javac if JAVA_HOME is set. Nevertheless, my JAVA_HOME is set to JAVA\jdk1.8.0_51\jre for Andriod Studio.

How should I do this?

I feel like if I touch with that JAVA_HOME then Android Studio won't work anymore and I won't put ads on my Visual Novel if I wanted to.

Someone, anyone, HELP ME. :(

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: JDK Problem

#2 Post by PyTom »

Why not set it to the JDK rather than the JRE?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

Re: JDK Problem

#3 Post by Lightworker »

It says JRE, but that's really the JDK. That makes AS work, it seems that Ren'Py does not know that. I even installed a newer JDK, Early Access version, and see if I could get this to work before I made this post. No success.

AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: JDK Problem

#4 Post by AxemRed »

The JDK contains a JRE. JAVA_HOME should point to the root folder of the JDK, not the embedded JRE.

Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

Re: JDK Problem

#5 Post by Lightworker »

How do I go about doing that?

Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

Re: JDK Problem

#6 Post by Lightworker »

I have no idea as to what I am doing *sniff*

Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

Re: JDK Problem

#7 Post by Lightworker »

Yep. Stull have no idea. Somebody please help!

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: JDK Problem

#8 Post by PyTom »

Can't you just go into your computer's settings and remove JAVA_HOME from the environment? I think the solution has been here for a while, but you do have to administer your computer.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Lightworker
Regular
Posts: 104
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Discord: Happiness+#1168
Contact:

Re: JDK Problem

#9 Post by Lightworker »

If I do that how will I use AS for the admob?
That's the key question here.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: JDK Problem

#10 Post by PyTom »

I don't support the use of admod with Ren'Py at this time. So if you need to use it, you need to solve the problems it causes.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot], simple_human, Toma