I have used the more student-oriented IDE DrJava before, and did not have trouble running programs dependent on .jar files in the terminal/command line.
Right now I am writing a simple program to find eigenvalues of matrices in IntelliJ, and although I have followed the steps listed in the stack overflow question "Importing jar file into IntelliJ Idea?" to add the .jar file I am using as a dependency, I am getting errors like this when I try to compile the program in terminal:
javac eigenvalues.java
eigenvalues.java:11: error: package Jama does not exist
import Jama.*;
^
and etc. (more errors of the form such-and-such does not exist).
My program has multiple classes and I only need the .jar file for one of them.
The program compiles fine within intelliJ, just not from terminal.