Attention

SERVICE RISK: The Bessemer HPC cluster will be at risk from 9am on July 15th until 5pm on July 19th 2024

For further detail, please click this link.

Attention

The ShARC HPC cluster was decommissioned on the 30th of November 2023 at 17:00. It is no longer possible for users to access that cluster.

Java

Java is a programming language and computing platform first released by Sun Microsystems in 1995.

Interactive Usage

After connecting to ShARC (see Establishing a SSH connection), start an interactive session with the qrsh or qrshx command.

Java can be activated using one of the following module files

module load apps/java/17.0.4/binary
module load apps/java/13.0.2/binary
module load apps/java/11.0.2/binary
module load apps/java/jdk1.8.0_102/binary

Check that you have the version you expect. First, the runtime

$ java -version

openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)

Now, the compiler

$ javac -version

javac 17.0.4

Installation notes

These are primarily for administrators of the system.

Java 1.8.0_102

  1. Download Java SE Development Kit 8u102 from Oracle. Select the tarball (jdk-8u102-linux-x64.tar.gz) for Linux and the x64 CPU architecture family.

  2. Save this file to /usr/local/media/java/1.8.0_102/.

  3. Install Java using this script.

  4. Install this modulefile as /usr/local/modulefiles/apps/java/jdk1.8.0_102/binary