

In case you are not using the Ubuntu repository because you are using Debian for example you need to enter the following command to make sure there is no verification error on apt update for the Bellsoft repository. After the installation is completed applications using JavaFX work just fine.

You can use bellsoft-java8-runtime-full to safe some space if you only need the JRE. Also bear in mind that you should uninstall all previously installed java versions via apt purge before installing this java version. It is important that you use the full version, as it is the only one coming with JFX. Liberica JDK is quite easy to install on Ubuntu / Debian based operating systems which support the aptitude package manager.Īll you have to do is to add the official BellSoft repository: wget -q -O - "" | sudo apt-key add -Įcho "deb stable main" | sudo tee /etc/apt//bellsoft.listĪnd after that update your packages and install the full bellsoft java version. I tried just removing those version restrictions (the =8u161-b12-1ubuntu2) and I didn't see any errors during the installation, but then when I compiled my code, none of the JavaFX classes could be found. I've tried changing my ubuntu:latest to ubuntu:19:10 in my FROM line in the Dockerfile, but I still got the missing packages errors. This used to run just fine, but now I get: E: Version '8u161-b12-1ubuntu2' for 'openjfx' was not foundĮ: Version '8u161-b12-1ubuntu2' for 'libopenjfx-java' was not foundĮ: Version '8u161-b12-1ubuntu2' for 'libopenjfx-jni' was not found

Here are the relevant parts of the Dockerfile: FROM my.:443/ubuntu:latest Installing openJFX 8 has always been a little tricky on Ubuntu, but I used to be able to do it using the tip from this SO answer: That used to work fine (I think I was using Ubuntu 19.something), however it appears that recently 8u161-b12-1ubuntu2 was removed.įor some more background information, I'm installing this via a docker file in an automated pipeline. I'm trying to install OpenJDK 8 and OpenJFX 8 on Ubuntu 20.10.
