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?

  • 3
  • Not really. That was about JavaFX 8 on 16.04, this is about JavaFX 11 on 18.10. – shz Oct 29 at 14:12
  • 1
    Bug on the same topic: bugs.launchpad.net/ubuntu/+source/openjfx/+bug/1799946 – shz Oct 29 at 15:07
  • This question is not a duplicate of askubuntu.com/questions/986229/…, since: - I am not planning to install libavcodec53 or libavformat53 - OpenJFX 8 which was available in 16.04 is not available in 18.10. - Oracle's JavaFX is not open source, therefore not viable for my open source application. – shz Oct 31 at 17:04
  • 1
    What are you going to do? Oracle is the only source for Java 8 that is bundled with JavaFX in 18.04 and 18.10, otherwise you're stuck with OpenJFX 11. It's all there in the duplicate question link that I provided that you claimed twice in 2 comments is only about 16.04 including the instructions for installing it. – karel Oct 31 at 17:11

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.