Corona With 64 Bit Java

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. 

Any update on this?  As a new Android developer I installed only 64-bit versions and have published an app in the play store.  Would I really have to install another JDK, JDK 6 32-bit, just to use Corona SDK nowadays, or can I point it at the already-working JDK 7 64-bit?

Corona depends on some feature in JNI that’s only available in Java 6. We are working to remove that dependency.  But for now, it still exists.

Rob

Any update on this?  As a new Android developer I installed only 64-bit versions and have published an app in the play store.  Would I really have to install another JDK, JDK 6 32-bit, just to use Corona SDK nowadays, or can I point it at the already-working JDK 7 64-bit?

Corona depends on some feature in JNI that’s only available in Java 6. We are working to remove that dependency.  But for now, it still exists.

Rob