How to execute Java program¶
A Java program can be executed using the command
java. For example:
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:
If you do so, make sure that line appears before any modules are loaded.