Installing Java applications¶
In this tutorial you will learn
- How to install Java applications
Java applications do not typically require special installation.
- You just need to download the distribution package, typically a
.jarfile.
Compute nodes do not have a default Java installation, so you need to load a
suitable Java module.
You can check the available modules with the command:
Some Java applications fail to run on the login nodes. Try running them
using
sinteractive instead (or by opening a compute node shell in the
Roihu web interface).
Naturally, computationally heavy tasks should never be run on the login
nodes.
The compute nodes have very limited
/tmp space. If you have to set the
temporary file location for a Java application, you can use:
Example: Installing ABRA2¶
In this example we'll install and run the Java application ABRA2.
-
Create a personal folder (if not done already) under your project's
/projappldirectory and move there. Then create (and move to) a new directory for the installation: -
Download the software:
-
Load a Java module:
If you get error messages or warnings about the Java version, try loading another Java module.
-
Run the application:
If you are not in the same directory as the
.jarfile, you need to include the full path to the file, e.g.