LogoLogo
  • Home
  • Getting Started
  • Configuration
    • LinuxGSM Config
    • Game Server Config
    • Start Parameters
    • cronjobs
    • Running on Boot
    • Running Multiple Game Servers
    • IP Address Configuration
    • LinuxGSM Stats
  • Commands
    • install
    • start-stop-restart
    • monitor
    • test-alert
    • console
    • debug
    • update
    • check-update
    • force-update
    • validate
    • update-lgsm
    • backup
    • map-compressor
    • details
    • mods
    • skeleton
    • fastdl
    • change-password
  • Game Servers
    • 7 Days to Die
    • Arma 3
    • ARK: Survival Evolved
    • Call of Duty 4
    • Dont Starve Together
    • Counter-Strike 2
    • Counter-Strike: Global Offensive
    • Factorio
    • Garry's Mod
    • Insurgency: SandStorm
    • Killing Floor 2
    • Minecraft: Java Edition
    • Multi Theft Auto
    • Rust
    • Sven Co-op
    • Trackmania Nations Forever / Trackmania United Forever
    • TeamSpeak 3
    • Unreal Tournament 99
    • Unreal Tournament 2004
    • Unreal Tournament 3
    • Valheim
    • Xonotic
    • The Front [WIP]
  • Networking
    • IP Address
    • Ports
    • Source Engine
  • Alerts
    • Discord
    • Email
    • IFTTT
    • Pushbullet
    • Pushover
    • Rocket.Chat
    • Slack
    • Telegram
  • Dependencies
    • Java
    • tmux
    • jq
    • gamedig
    • glibc
  • Features
    • ANSI Colors
    • Stop Mode
    • Log Management
    • Message Display Time
  • SteamCMD
    • Steam Master Server
    • Game Server Login Token
    • Branch
    • LAN Discovery
    • Workshop
    • Error Codes
  • Linux
    • distro
    • ftp-scp
    • file-ownership
    • firewalls
    • network-interfaces
    • permissions
    • Symlinking and ln command
  • Troubleshooting
  • FAQ
  • Guides
    • Security
    • Make Webserver Case Insensitive
    • Sourcemod and Metamod:Source
  • Other
    • server-migration
    • basic-usage
    • brand
Powered by GitBook
On this page
  • Installation of Java Runtime Environment
  • Debian/Ubuntu
  • CentOS
  • JRE Availability Table
Edit on GitHub
Export as PDF
  1. Dependencies

Java

Some game servers require using Java Runtime Environment (JRE) such as Minecraft and Project Zomboid.

Installation of Java Runtime Environment

If you are unsure which version to choose simply pick the default JRE.

Debian/Ubuntu

JRE

To install the most up to date JRE for the distro run:

apt install default-jre

OpenJRE

For openjdk, run the following changing the version number:

apt install openjdk-8-jre
apt install openjdk-11-jre
apt install openjdk-16-jre
apt install openjdk-17-jre

CentOS

Run the following command, changing the version number:

yum install java-1.8.0-openjdk
yum install java-11-openjdk

JRE Availability Table

JRE Availability Table Different Distros have different versions of Java. This page will outline the different versions that are available.

Distro

JRE 6

JRE 7

JRE 8

JRE 11

JRE 13

JRE 16

JRE 17

CentOS 7

YES

YES

YES

YES

NO

NO

NO

CentOS 8

NO

NO

YES

YES

NO

NO

NO

Debian 9 "Stretch"

NO

NO

YES

YES (backport)

NO

NO

NO

Debian 10 "Buster"

NO

NO

NO

YES

NO

NO

NO

Debian 11 "Bullseye"

NO

NO

NO

YES

NO

NO

YES

Ubuntu 16.04 LTS

NO

NO

YES

NO

NO

NO

NO

Ubuntu 18.04 LTS

NO

NO

YES

YES

NO

NO

NO

Ubuntu 20.04 LTS

NO

NO

YES

YES

YES

YES

YES

PreviousDependenciesNexttmux

Last updated 3 years ago

also contains details of JRE versions.

Further Reading

Distrowatch
https://help.ubuntu.com/community/Java