Java

There are multiple versions of Java available on HPCC. Using the default is recommended.

  • OpenJDK 1.8.0 (default)
  • OpenJDK 1.7.0
  • Oracle Java 1.8.0
  • Oracle Java 1.7.0

The full path to each is, respectively:

  • /usr/lib/jvm/java-openjdk/jre/bin/java
  • /usr/lib/jvm/java-1.7.0-openjdk/jre/bin/java
  • /usr/lib/jvm/java-oracle/jre/bin/java
  • /usr/lib/jvm/java-1.7.0-oracle/jre/bin/java

If you would like to change the default to Oracle, please add the following code to your job script or ~/.bashrc file.

If you receive the error…

you may need to adjust the memory heap size that Java manages, as the job queue will kill any process that exceeds its limits. This can be done with the _JAVA_OPTIONS environment variable, which can be set in a job script or ~/.bashrc file, or at the command line: