Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server
Xernode/ Blog/#java

Blog

#java

Posts tagged with “java”.

How to Install Java on Ubuntu

  • Xernode
  • 1-minute read
  • linux

For most VPS services, distro OpenJDK LTS is enough — no paid Oracle JDK required.

Steps

  1. Install OpenJDK 21 (LTS) and basic tools:

    sudo apt update
    sudo apt install -y openjdk-21-jdk
    java -version
    javac -version
  2. If several JDKs exist, pick the active one:

… Read the complete guide