User Tools

Site Tools


java-linux

This is an old revision of the document!


Install Java Runtime Environment (JRE) on Linux

This page is a HOWTO for installing OpenJDK Java Runtime Envirobment (JRE) on Linux for use with the Crossfire JXClient or the map editor, Gridarta for Crossfire.

Ubuntu

The following instructions for the listed versions of Ubuntu includes or applies to all the different flavours including:

  • Kubuntu
  • Lubuntu
  • Ubuntu Budgie
  • Ubuntu Mate
  • Xubuntu

To install this version, first update the package index:

sudo apt update

Next, check if Java is already installed:

java -version

If Java is not currently installed, you’ll see the following output:

Output
Command 'java' not found, but can be installed with:
apt install default-jre
apt install openjdk-11-jre-headless
apt install openjdk-8-jre-headless

Execute the following command to install OpenJDK JRE:

sudo apt install default-jre

This command will install the Java Runtime Environment (JRE). This will allow you to run almost all Java software.

Verify the installation with:

java -version

You’ll see the following output:

openjdk version "11.0.7-ea" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7-ea+9-post-Ubuntu-1ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7-ea+9-post-Ubuntu-1ubuntu1, mixed mode, sharing)
java-linux.1586843657.txt.gz · Last modified: 2020/04/14 00:54 by leaf