Skip to content


How to execute Java program

A Java program can be executed using the command java. For example:

java Warehouse

If your program uses additional libraries and you modify your CLASSPATH variable, either yourself or by using a module, you might need to define the CLASSPATH variable in your .bashrc configuration file to include your project directory. It could be something like this:

export CLASSPATH=.

If you do so, make sure that line appears before any modules are loaded.