You want to run Java on Dalma.
Ths page explains how to use Java on Dalma.
To run small, short Java program on login node, or in interactive session, load the Java module first.
Run this in terminal:
module load jdk
To submit a batch job with Java program, follow the steps:
1.- Prepare a SLURM job script following the example below.
Job script for a serial Matlab job. Save it using a meaningful filename. E.g., "java-job.sh"
#!/bin/bash
# Set number of nodes to run
#SBATCH --nodes=1
# Set number of tasks to run
#SBATCH --ntasks=1
# Set number of cores per task (default is 1)
#SBATCH --cpus-per-task=1
# Walltime format hh:mm:ss
#SBATCH --time=00:30:00
# Output and error files
#SBATCH -o job.%J.out
#SBATCH -e job.%J.err
# **** Actual commands start here ****
# Load modules here (safety measure)
module purge
module load jdk
# Replace this with your actual command.
java -version
2.- Submit the job
Run this in terminal:
sbatch java-job.sh
NYUAD HPC Apps Team:
--------------------
- Benoit Marchand
- Guowei He
- Jorge Naranjo
Please refer to the online documentation available here