Java/Batch

From ScientificComputing
Revision as of 11:04, 20 October 2022 by Sfux (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.