Difference between revisions of "Applications/Java"
From HPC
m |
m |
||
Line 61: | Line 61: | ||
− | + | ==Navigation== | |
− | + | ||
− | |||
* [[Main_Page|Home]] | * [[Main_Page|Home]] | ||
− | * [[Applications|Application support]] | + | * [[Applications|Application support]] * |
* [[General|General]] | * [[General|General]] | ||
− | |||
* [[Programming|Programming support]] | * [[Programming|Programming support]] | ||
− | |||
− |
Revision as of 12:53, 24 May 2019
Contents
Application Details
- Description: Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented,[14] and specifically designed to have as few implementation dependencies as possible. I
- Version: 6.5.14, 7.5.18 and 8.0.61
- Modules: java/jdk1.7.0_80 and java/jdk1.8.0_102
- Licence: Free, but owned by Oracle
Usage Examples
Interactive Session
Note: this example is done on a compute node, usually access would be achieved with the scheduler
[username@gpu01 ~]$ module add java/jdk/1.8.0_102 [username@gpu01 ~]$ java myJAVA.javac
Non-interactive Session
This is running the job through the scheduler SLURM by using the command sbatch myJOB.job
#!/bin/bash #SBATCH -J openJava-single-node #SBATCH -N 1 #SBATCH --ntasks-per-node 1 #SBATCH -o %N.%j.%a.out #SBATCH -e %N.%j.%a.err #SBATCH -p compute #SBATCH --exclusive echo $SLURM_JOB_NODELIST module purge module add java/jdk1.8.0_102 export I_MPI_DEBUG=5 export I_MPI_FABRICS=shm:tmi export I_MPI_FALLBACK=no java /home/user/CODE_SAMPLES/demoJAVA
Further Information