Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

OracleJDK or OpenJDK
Started by Xorcist May 08 2019 06:40 PM

3 replies to this topic
jdk
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Xorcist

[GLOBAL: userInfoPane.html]
Xorcist
  • Observer

  • 13 posts
  • Corona SDK

I've been reading lately about how the OracleJDK is now a commercial offering, and using it for production software will require a license. Does this impact my Corona development at all? I know a JDK is required to build for Android, but should I be looking into using OpenJDK instead? Would it just be safer to just use OpenJDK or does Corona specifically require OracleJDK (that is what I was linked to from the simulator when I tried to build for Android). Just wanted to make sure I'm not going to be getting a call from Oracle looking to hit me with penalty fees.



[TOPIC: post.html]
#2

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 802 posts
  • Corona Staff

Actually I believe Corona will work with any JDK/JRE. Also, it seems like you can use latest JDK for free, it affects only old versions.


  • mysticeti likes this

[TOPIC: post.html]
#3

mail764

[GLOBAL: userInfoPane.html]
mail764
  • Observer

  • 1 posts
  • Corona SDK

I'm totally new with Corona and I've never used Java JDK before, now I've heard of the new Java licenses and I don't know what I have do to in order to respect Oracle's licenses and avoid any legal problem, please can someone tell me which version of JDK I have do download (Java SE? OpenJDK? which version number?) in order to compile apps for Android (using Windows 10 64bit as the development machine)? Do Oracle's new licenses affect someway apps built with Corona? Thanks a lot for your time and attention and thanks in advance for any answer.



[TOPIC: post.html]
#4

Xorcist

[GLOBAL: userInfoPane.html]
Xorcist
  • Observer

  • 13 posts
  • Corona SDK

After reading over many Java dev posts on the topic I personally decided it was safer to just use OpenJDK.

 

Here is what I did to get it working with Corona:

  1. Download the latest stable Win64 OpenJDK build from the OpenJDK site: https://jdk.java.net/12/
  2. Since this is not an installer package, unzip the files into: C:\Program Files\Java
  3. Since Corona uses the Windows registry entries over the PATH or JAVA_HOME environment variables add the following registry keys (obviously change versions to whatever you are using):
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK]
"CurrentVersion"="12"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\12]
"JavaHome"="C:\\Program Files\\Java\\jdk-12.0.1"


*** Optionally you could also just download and use a pre-built installer from

https://adoptopenjdk.net/installation.html or https://github.com/ojdkbuild/ojdkbuild


  • mysticeti likes this


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: jdk