Java

From ScientificComputing
Jump to: navigation, search

Please note that this application page is referring to the old CentOS software stack which is obsolete and does not work any more with the new Ubuntu setup. You can find an overview on the Ubuntu software stack on this wiki page.

Category

Development, Compiler

Description

Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture. Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.

Available versions (Euler, old software stack)

Please note that in the Ubuntu software stacks, the modules providing java are named jdk and openjdk and no longer java
Legacy versions Supported versions New versions
1.6.0_31 1.7.0_51, 1.8.0_31, 1.8.0_91

Environment modules (Euler, old software stack)

Version Module load command Additional modules loaded automatically
1.6.0_31 module load legacy java/1.6.0_31
1.7.0_51 module load java/1.7.0_51
1.8.0_31 module load java/1.8.0_31
1.8.0_91 module load java/1.8.0_91

Please note that this page refers to installations from the old software stack. There are two software stacks on Euler. Newer versions of software are found in the new software stack.

How to submit a job

You can submit a Java job (my_java_program.jar) in batch mode with the following command:
sbatch [Slurm options] --wrap="java -jar my_java_program.jar"
Here you need to replace [Slurm options] with Slurm parameters for the resource requirements of the job. Please find a documentation about the parameters of sbatch on the wiki page about the batch system.

License information

Oracle provides their jdk jre under the Binary Code License.

Links

https://java.com/en/

https://en.wikipedia.org/wiki/Java_(software_platform)
https://en.wikipedia.org/wiki/List_of_Java_APIs
https://www.youtube.com/user/java/featured