Java is a programming language and computing platform first released by Sun Microsystems in 1995.
After connecting to ShARC (see Establishing a SSH connection), start an interactive session with the qrsh or qrshx command.
The default version of Java (which is also the most recent version; currently 1.8.0_102) is made available with the command
module load apps/java
Alternatively, you can explicitly load this version using:
module load apps/java/jdk1.8.0_102/binary
Explicitly loading a version will become more useful once multiple versions of Java are installed on this system.
Check that you have the version you expect. First, the runtime
$ java -version java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
Now, the compiler
$ javac -version javac 1.8.0_102
These are primarily for administrators of the system.
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.
Save this file to
Install Java using
this modulefile as