1

I'm developing an application that needs JavaFX. This week I upgraded to Ubuntu 18.10 and saw that the default version of OpenJDK is 11 and therefore the OpenJFX version is also 11. The "cosmic" repositories contain also version 8 of OpenJDK, but no OpenJFX 8 can be found.

Java 11 was released only the 25th of September 2018, it is really new. The problem is, I'm now forced to develop my application with it; this gives me two problems:

  1. The other libraries I use are not compatible with JavaFX 11.
  2. Probably not many people plans to upgrade to it in the next months and they will not be happy to be forced to do it when they install my application.

I tried looking for some PPA but did not find any containing OpenJFX 8 for cosmic.

Is there a practical way to install OpenJFX 8, while still working with Ubuntu 18.10?

shz
  • 11

2 Answers2

0

I've used a workaround suggested in the bugreport on launchpad @shz linked in the comment:

  • add the Ubuntu Bionic Sources
  • install the openjfx packages forcing the 8.x version from Bionic
  • lock these Versions
  • remove Bionic soures again
9Lukas5
  • 21
0

I went through something similar and info about possible solutions can be found on the following link. The main thing is that I don't think there is a JavaFX 8. At that point (Java 8), JavaFX was built in, part of Java. It's only since Java went modular (Java 9+) that JavaFX had to be installed separately.

java-1-8-jar-runs-in-windows-not-ubuntu-could-not-find-or-load-main-class

But for some reason, OpenJDK 8 doesn't include JavaFX though one would expect it to be built in. (It is built in for Windows.)