PetroSky Documentation
  • PetroSky - Docs
  • Getting Started
    • Basics
      • What is a VPS?
      • Operating Systems
      • Connecting to a VPS
    • Utilities
      • Backups
      • Snapshots
      • Reinstall
      • Password Reset
      • noVNC
    • Tutorials
      • Changing SSH Port
      • noVNC - Disabling Firewall
      • Installing Essentials
      • Installing LAMP
      • Installing OpenJDK 11
      • Installing NodeJS 12
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Tutorials

Installing OpenJDK 11

OpenJDK 11 - Tutorials

PreviousInstalling LAMPNextInstalling NodeJS 12

Last updated 3 years ago

Was this helpful?

How to install OpenJDK 11 on Ubuntu 21.04?

First of all. Login to your VPS using PuTTY.

1 - Installing OpenJDK 11

root@petrosky:~# apt-get update && apt-get upgrade -y

root@petrosky:~# apt install git build-essential

root@petrosky:~# apt install openjdk-11-jre

2 - Installing Headless OpenJDK 11 (GUI Unsupported)

root@petrosky:~# apt install openjdk-11-jre-headless

After that. We are done! We can check for our Java Version by using: java -version command on our terminal!