Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (867)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Confusion about OpenJDK  (Read 2551 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2019-01-02 07:31:42 »

I am really confused.

Simple (stupid) questions?

1) Is it permitted to make and sell commercial program using OpenJDK (GPLv2 license)? I want to make and sell an application using Java. I'm not publishing this application as open source. I can't figure out if this "copyleft" interferes with my ability to make and sell something. I don't need to understand all the ramifications and concepts, I just want to know if I can make and sell using OpenJDK.

2) I packaged and released an app on that makes use of Java SE 9, from Oracle. The Java 9 was downloaded many months ago, and my release was last month. Does the existence of this require paying Oracle a licensing fee? I don't intend to change or update the jre that was built. Do I need to rebuild this with OpenJDK to avoid the licensing fee?   

3) I'm totally confused as to how to create a dev environment that makes use of both JavaFX and OpenJDK 11. It seems like "the plan" is to write code "once", then package it at least three times (Windows64, Mac OS, Linux) by making a custom JRE for each OS, using jlink. Fine. But creating the dev environments where this can be accomplished is not obvious to me, especially if using OpenJDK and JavaFX together now that the two have been separated.

How are people doing this on Win64?
How are people doing this on Mac OS?
How are people doing this on Linux?

I'm okay with just using the command line tools and doing steps manually. My programs are NOT complicated, only require maybe two or three modules. I'd really not get into the complexity of building Java implementations, or otherwise making use of tools like Maven, Ant, whatever. Command line javac works fine for my simple applications.

I'm really close to saying F*CKITALL to JavaFX and going back to Swing.

EDIT: am going to take a look at Eclipse's J9. Also found and will be taking a look at its documentation tomorrow.

music and music apps:
Offline gouessej
« Reply #1 - Posted 2019-01-03 21:54:40 »


1) Yes, OpenJDK is under GPL v2 with classpath exception, similar to LGPL.

2) You might have to rebuild this with OpenJDK in the future to avoid the licensing fee but it's currently unnecessary now.

3) I can't help you on OpenJFX/JavaFX.

By the way, I advise you to go to to find prebuild JREs, including some relying on OpenJ9.

Julien Gouesse | Personal blog | Website | Jogamp
Offline philfrei
« Reply #2 - Posted 2019-01-04 04:14:27 »

Thanks @gouessej!

2) The way things are going, I may be able to rebuild my app sooner rather than later. Am glad to hear there is some breathing room, though.

3) In answer to this, I've found a tremendous resource,

This site has built OpenJFX which can be used with OpenJDK 11.
There is a tutorial on the page called "Getting Started".
It assumes one has installed OpenJDK 11 from
Then, it has a guide for installing OpenJFX on Windows, Mac, and Linux.

The guide is well written and includes a sample JavaFX program, plus instructions on how to compile and run the sample code. The commands are slightly different than "normal" modular in that the /lib with JavaFX modules is in its own location, not with the Java 11 modules.

There are also instructions for using jlink, and for use with Eclipse/Netbeans/IntelliJ.

I don't think there is anything on the last packaging steps, where one does things like set it up for "native install" or the ability to register associated data types. Will be heading back to Oracle's guides for that info.

So far, I've managed to install both OpenJDK 11 and OpenJFX on both Windows and on a Linux/Ubuntu 18.04.1 VirtualBox emulator. I've also managed to compile and run my ReferenceNoteKeyboard application in each, with only one (expected) hitch: I haven't configured sound for the VirtualBox guest, and thus can't hear the notes being played. But the gui works fine.

Next step: see if the jlink commands work in both OS's. [EDIT: jlink is working on both. Chances are it will also work on Mac OS, as command line is identical.]  (Side project: loading new Eclipse to run with the OpenJDK/OpenJFX system and if it works deleting the Oracle Java 8 & 10 that I am currently using, and, seeing if I can get some sound out of my VirtualBox.)

No, I can't use VirtualBox for Mac emulation. It seems that having an AMD processor makes this very difficult, and I got banned from the AMD-MAC forum. For "spamming". No response to request for clarification from the forum manager. I posted 3 times, one an intro and response to response, one asking for the right place to ask a question. OK I know I am "prone to prose". But spamming? The question I wanted to ask pertained to instructions for editing the boot configuration, their example being ASUS my motherboard being ASROCK, with many discrepancies between the two.

music and music apps:
Pages: [1]
  ignore  |  Print  

Riven (397 views)
2019-09-04 15:33:17

hadezbladez (5280 views)
2018-11-16 13:46:03

hadezbladez (2204 views)
2018-11-16 13:41:33

hadezbladez (5544 views)
2018-11-16 13:35:35

hadezbladez (1150 views)
2018-11-16 13:32:03

EgonOlsen (4585 views)
2018-06-10 19:43:48

EgonOlsen (5462 views)
2018-06-10 19:43:44

EgonOlsen (3119 views)
2018-06-10 19:43:20

DesertCoockie (4016 views)
2018-05-13 18:23:11

nelsongames (4708 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!