Corona With 64 Bit Java

Hi,

Im planning using 64 bit java on my normal java app but i guess corona sdk is not compatible with 64 java in generating android build? If i install 32 bit java, how can i configure corona to use the 32 bit java since my JAVA_HOME is pointing to 64 bit java.

Cheers.

Eman

Are you on Windows or a Mac?

Hi,

I am using Win 7

Thanks.

Eman

Windows can run both Java 6 and Java 7 at the same time.  Corona will automatically pick up the Java 6 from the PATH registry setting.  The only problem is if some 3rd party sets the PATH to include the Java 7 path.  Oracle does not do this, so it would have to be some other software package that would mess this up.

Are you on Windows or a Mac?

Hi,

I am using Win 7

Thanks.

Eman

Is there any plan to support 64 bit java in the future?

It’s not a matter of us supporting it.  I don’t believe that Android supports it.  It’s a question to ask Google.

there is 64 bit sdk available: http://developer.android.com/sdk/index.html#download

Can you point to specifically what you are looking at there?  All I see are things like:

Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)

64-bit distributions must be capable of running 32-bit applications.

and

JDK 6 (JRE alone is not sufficient)

Windows can run both Java 6 and Java 7 at the same time.  Corona will automatically pick up the Java 6 from the PATH registry setting.  The only problem is if some 3rd party sets the PATH to include the Java 7 path.  Oracle does not do this, so it would have to be some other software package that would mess this up.

Hi,

I have this configuration on my win 7

JDK 7 64 bit

Android SDK 64 bit

and it works well.

I just wanted to know if corona sdk will work on my current setup?

Thanks.

Hi @exst_enollase,

Corona requires JDK6; as Rob says, you can run both, but you need JDK6 for Corona.

See this guide: http://docs.coronalabs.com/guide/start/installWin/index.html

I’m not sure if JDK7 will be supported in the near future, but I can check into this further if you wish.

Sincerely,

Brent Sorrentino

Hi Brent,

Would like to hear progress about corona sdk supporting jdk7 and java 64 bit platform compatible.

Btw, in corona sdk once installed, is there a way to specify specific jdk on cofig file? or it will pick up what it is the path variable of windows? Because I would like to keep jdk7 64 bit on my path variable.

Thanks.

Cheers

Eman

Supporting jdk7 is not a Corona issue but an issue with Android. Apps signed with jdk7 are not compatible with Android.

On Windows, multiple versions of the JDK can coexist on the same machine without any problems.  We’ve tested this with both a 32-bit and 64-bit version of the JDK 6 installed and a 32-bit and 64-bit version of the JDK 7 installed as well.  Corona will automatically pick up the 32-bit JDK 6 path from the registry and use the correct version.

The only known issue that we have is if the PATH environment variable is set to one of the other JDK’s, then the final build step will use the wrong JDK version to sign the APK, causing it to be digitally signed wrong and prevent the app from being installed on an Android device… because Android only supports the 32-bit JDK 6.  Oracle/Sun does not set the PATH environment variable when installing the JDK, but I suspect that some 3rd party Java tools do, causing this issue to come up every once in a while. 

Is there any plan to support 64 bit java in the future?

It’s not a matter of us supporting it.  I don’t believe that Android supports it.  It’s a question to ask Google.

there is 64 bit sdk available: http://developer.android.com/sdk/index.html#download

Can you point to specifically what you are looking at there?  All I see are things like:

Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)

64-bit distributions must be capable of running 32-bit applications.

and

JDK 6 (JRE alone is not sufficient)

Hi,

I have this configuration on my win 7

JDK 7 64 bit

Android SDK 64 bit

and it works well.

I just wanted to know if corona sdk will work on my current setup?

Thanks.