64bit JVM conflict?

I’m running the latest daily of Corona SDK, and had to download 32bit JDK (1.8) since it’s needed.

Now I’m trying to install Android Studio, and it’s requesting I install the 64bit JVM/JDK instead. I’m not really sure what to do. I don’t want to install 64bit and have it overwrite/conflict with what I have already.

What’s the appropriate installs to get both these running?

Hi @Zenoxio,

JDK 7 in 64 bit should actually work for Corona now. Can you follow the steps outlined in this guide?

http://docs.coronalabs.com/guide/start/installWin/index.html#jdk

Thanks,

Brent

I’ve had no luck with that, I installed 64bit per that guide and got this error when trying to build:

 


Corona Simulator


Could not find the Java Development Kit (JDK).  This is required in order to build for Android.  You’ll need to install the x86 (32-bit) version.

Would you like to download it now?


Yes   No   


What I would do is install a Java JRE (1.6 or 1.7) 32 bit and a Java JDK 64 bit (1.7 or 1.8).  The JDK includes the JRE and the Corona Simulator needs the JRE.  You can have a different JDK installed from the JRE version installed. 

Rob

Checked with Process Monitor where Corona Simulator searches for JRE/JDK.

On Win 7 x64 it searches in:

  • HKLM\Software\Wow6432Node\JavaSoft\Java Development Kit

HKLM\Software\Wow6432Node\JavaSoft\Java Runtime Environment

So you need both JDK and public JRE installed on your machine

Why it just can’t use embedded JRE (%path_to_jdk%\jre)? And can we have an option to specify path to JDK manually (console option or in Preferences)?

No luck, I just tried that setup:
 

  • JRE 7u76 (32bit)
  • JDK 7u72 (64bit)

And Corona gives me the same “Could not find the Java Development Kit (JDK)” error

There was a similar thread a while back.  See:   https://forums.coronalabs.com/topic/56235-couldnt-find-jdkwindows-7-x64/

Perhaps this will help you.  Look at my next-to-last post and the top poster’s step-by-step he did to get his issue solved.

Rob

No luck: http://i.imgur.com/9LpIj4J.png

I set the PATH, reinstalled them in the right folder etc, same error

Are you getting this when you start up Corona or when you hit the Build for Android button?

Just on Build; I never had any issues starting Corona throughout this Java trouble.

Well in that case, its the PATH.  Can you copy and paste your path into a reply here?  Then look for any reference to Java in there and make sure those paths actually exist.  Later versions of java put files into a subfolder and the path gets updated.

Rob

The PATH is in a screenshot, does it look correct?

I’m not at the PC with the issue at the moment, but the details should be in the screenshot on my 2nd to last post.

I can’t copy and paste from screen shots.  I can’t easily have the screen shot up on my screen and the forums post up when I’m just on my laptop.

Please open up a command windows (Run -> cmd) then type in the command “path” and hit enter.  Copy/Paste that into here.  (you may have to click on the menu for the window and enable copying the text.  I don’t have my windows machine with me.

Now if that path is only:  C:\Program Files(x86)\Java\bin, you need to open that folder and make sure there are actually Java based commands in that bin folder and that it isn’t something like:
 

C:\Program Files(x86)\Java\1.8u31\bin or something like that.  Get a listing of everything in C:\Program Files(x86)\Java  then get a listing of everything in C:\Program Files\Java if it exists.  Please post all of that.

Rob

PATH: C:\Program Files(x86)\Java\

The folder exists, and under it is folders: bin, jre, jre7, lib

I tried changing PATH to C:\Program Files(x86)\Java\bin

And got the same error though. There is indeed a “java.exe” in \bin

What is in the jre folder?

Hi @Zenoxio,

JDK 7 in 64 bit should actually work for Corona now. Can you follow the steps outlined in this guide?

http://docs.coronalabs.com/guide/start/installWin/index.html#jdk

Thanks,

Brent

I’ve had no luck with that, I installed 64bit per that guide and got this error when trying to build:

 


Corona Simulator


Could not find the Java Development Kit (JDK).  This is required in order to build for Android.  You’ll need to install the x86 (32-bit) version.

Would you like to download it now?


Yes   No   


What I would do is install a Java JRE (1.6 or 1.7) 32 bit and a Java JDK 64 bit (1.7 or 1.8).  The JDK includes the JRE and the Corona Simulator needs the JRE.  You can have a different JDK installed from the JRE version installed. 

Rob

Checked with Process Monitor where Corona Simulator searches for JRE/JDK.

On Win 7 x64 it searches in:

  • HKLM\Software\Wow6432Node\JavaSoft\Java Development Kit

HKLM\Software\Wow6432Node\JavaSoft\Java Runtime Environment

So you need both JDK and public JRE installed on your machine

Why it just can’t use embedded JRE (%path_to_jdk%\jre)? And can we have an option to specify path to JDK manually (console option or in Preferences)?

No luck, I just tried that setup:
 

  • JRE 7u76 (32bit)
  • JDK 7u72 (64bit)

And Corona gives me the same “Could not find the Java Development Kit (JDK)” error