I'm trying to migrate away from Java SE and it's JDK - to OpenJDK/OpenJFX, but am confused about the correct steps to get from Point A to Point B:
Point A (current state): I use IntelliJ IDEA CE on Windows 7, 64-bit to develop a multi-module project Maven project. This includes a parent, client and server module (3 total). My project currently relies on JavaFX (not OpenJFX).
Point B (desired state): I want to remove all reference to Oracle's JDK and JavaFX from my project and rely fully on OpenJDK/OpenJFX. My goal is to eventually license out the use of my application for a profit so this seems to be the best way to avoid an Oracle fee.
My options seems to be (1) build OpenJDK myself from sources or (2) use a pre-built binary like the one offered by Red Hat. Building it myself seems to avoid the ambiguous Red Hat terms discussed here. To confuse me further, JetBrains offer their own Windows x64 OpenJDK builds, I don't see if these should be used somehow.
I understand OpenJDK doesn't come with JavaFX so I need to build JavaFX from source regardless, as described here but it says I must have Gradle, not mentioning Maven.
This leaves me with 2 interrelated questions:
Do I really have to migrate from Maven to Gradle just to build the OpenJDK/OpenJFX? Can I use both? Perhaps I can use Gradle to do the building, and then use these builds within my current Maven project? Please clarify.
I can't find any helpful tutorial detailing the process for a Windows/Maven project to migrate to using OpenJDK/OpenJFX. Can you offer a helpful resource given this context?
I'm assuming using a binary will save time, but building it myself would grant me the most license freedom.
I'm not seeking legal advice or license interpretation - only the logical steps an itelligent developer would take to accomplish my goal.
In regards to Gradle, you are only using it to build OpenJFX. It does not imply that you need to convert your Maven project to Gradle. Once you have overlaid OpenJFX onto your OpenJDK installation (see Overlay - JDK 8), your project should resolve all JFX references as before.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With