Skip to content
Snippets Groups Projects
java.md 813 B
Newer Older
# Java

Java is available on the cluster. Activate java by loading the Java module

```console
$ ml Java
```

Note that the Java module must be loaded on the compute nodes as well, in order to run java on compute nodes.

Check for java version and path

```console
$ java -version
$ which java
```

With the module loaded, not only the runtime environment (JRE), but also the development environment (JDK) with the compiler is available.

```console
$ javac -version
$ which javac
```

Java applications may use MPI for inter-process communication, in conjunction with Open MPI. Read more on <http://www.open-mpi.org/faq/?category=java>. This functionality is currently not supported on Anselm cluster. In case you require the java interface to MPI, please contact [cluster support](https://support.it4i.cz/rt/).