Install SQL Developer on Ubuntu 18.04 with OpenJDK 8

## Install Java 8 SDK

```Bash
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get -y update
sudo apt-get -y install openjdk-8-jdk
```

## Install Oracle SQL Developer

Before you can use SQL Developer with OpenJDK 8, you need to install JFX. Please note, that Oracle does not officially support OpenJDK, but it does work; however, you need to use JFX version 8. You will have to download the "Other Platform" where the JRE is NOT included with the installation.

Refer: <https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html>

## Install JFX

Refer: <https://stackoverflow.com/questions/52484814/oracle-sql-developer-problem-initializing-welcome-page>

```Bash
sudo apt install -y libopenjfx-java=8u161-b12-1ubuntu2 --allow-downgrades
sudo apt install -y libopenjfx-jni=8u161-b12-1ubuntu2 --allow-downgrades
sudo apt install -y openjfx=8u161-b12-1ubuntu2 --allow-downgrades
```

Verify you have OpenJFX 8 installed:

```Bash
dpkg -l | grep openjfx
```

Location of Java, required for Oracle SQL Developer:

```Text
/usr/lib/jvm/java-8-openjdk-amd64
```

Leave a Reply