This guide is particularly helpful if you are looking at using Quarch Instrument Server(QIS), Quarch Power Studio(QPS), or Quarch Compliance Suite(QCS) on Ubuntu.
There are a number of users switching from using Official Java from Oracle to openJDK due to new SE subscription. In this post I will not be addressing the terms, as that has been done on countless other forums – instead I will be giving an easy-to-implement solution to getting Quarch java applications running using openJDK.
QIS, QPS, and QCS are all Java 8 applications and require Java 8 to run them. The main issue with OpenJDK8 is that it doesn’t come with OpenJFX (the GUI Library that our applications use to display our user interface). There are a few solutions add OpenJFX to your OpenJDK, but the simplest one I have found I have listed below:
If you don’t have OpenJDK-8 already installed, install it using:
>sudo apt install openjdk-8-jdk
Use update-java-alternatives to see java versions installed and to change what version you are using to OpenJDK-8.
Use the following commands to get rid of any previous install of OpenJFX, install this specific version, and hold it to stop it from being updated:
>sudo apt purge openjfx
>sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
>sudo apt-mark hold openjfx libopenjfx-jni libopenjfx-java
This solution was based on an answer found on stack overflow.
You can now download our java-based applications and run them. QIS and QPS are packaged inside our python API called Quarchpy. I would always recommend that you get QIS and QPS by installing python3 and then installing Quarchpy using pip. This means if there are any updates to QIS or QPS you will get them when you update Quarchpy, which is very easy to do. If you do not want to have Quarchpy on your system then you are able to download QIS and QPS separately from our website.
At the time this was written, the only way to download QCS client-side is from our website here.