How to install Oracle JDK 14 on my Rasberry Pi 4B?

I'm trying to install jdk 14 on my raspbian pi 4b but all tutorials either show how to download open-jdk or how to download an old oracle jdk version. I've already tried to install the .deb file without any tutorial ( but it does not work.

[email protected]:~ $ sudo apt install /home/pi/Downloads/jdk-14.0.1_linux-x64_bin.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'jdk-14.0.1:amd64' instead of '/home/pi/Downloads/jdk-14.0.1_linux- 
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
jdk-14.0.1:amd64 : Depends: libasound2:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.

Is it even possible to install orcale jdk 14 on raspbian?

Answers 3

  • Back in July 2019 Oracle Java 7 and 8 was replaced in Raspbian with OpenJDK 11 but as of now, v14 of OpenJDK was released to GA March 2020.

    If you cannot find a binary suitable you may well be able to build this IF you live in the authorised list of countries and are not using it for tasks listed under the licence terms.

    My understanding is that both toolkits are built to/under the Java Technology Certification Kit specification and using the Oracle version requires a commercial license from them.

  • As mentioned by @goldilocks and @andyroo, you shouldn't be looking at Oracle for suitable JDK for the Raspberry Pi. BellSoft has one with LibericaJDK! I have install scripts for the different versions in

    For JDK 14 on Raspbian OS (32 bit) it is:

    cd /home/pi
    sudo apt-get install ./bellsoft-jdk14+36-linux-arm32-vfp-hflt-full.deb
    sudo update-alternatives --config javac
    sudo update-alternatives --config java

    Update 20200921

    If you want to use Java 15 on Ubuntu 64-bit: more info on

Related Questions