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: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

JDK Problem

#1 Post by Lightworker » Fri Feb 12, 2016 9:48 pm

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: 15497
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 » Sat Feb 13, 2016 2:24 am

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Lightworker
Regular
Posts: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: JDK Problem

#3 Post by Lightworker » Sat Feb 13, 2016 10:32 am

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.

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

Re: JDK Problem

#4 Post by AxemRed » Sat Feb 13, 2016 11:06 am

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

Lightworker
Regular
Posts: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: JDK Problem

#5 Post by Lightworker » Sat Feb 13, 2016 2:55 pm

How do I go about doing that?

Lightworker
Regular
Posts: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: JDK Problem

#6 Post by Lightworker » Fri Feb 19, 2016 7:45 pm

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

Lightworker
Regular
Posts: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: JDK Problem

#7 Post by Lightworker » Wed Mar 09, 2016 10:30 am

Yep. Stull have no idea. Somebody please help!

User avatar
PyTom
Ren'Py Creator
Posts: 15497
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 » Thu Mar 10, 2016 3:18 am

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Lightworker
Regular
Posts: 102
Joined: Sun Dec 13, 2015 2:06 pm
Projects: Detroit.exe
Skype: badthai
Contact:

Re: JDK Problem

#9 Post by Lightworker » Fri Mar 11, 2016 12:55 pm

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: 15497
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 » Fri Mar 11, 2016 1:30 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: felsenstern, Google [Bot]