Java same file compiles and run from Terminal but not from atom "error: cannot find symbol"


In the general sense,
shouldn’t it be expected that running a java program from Atom \ Linux Terminal (Ubuntu) produce the same results?
Terminal: Java compiles and run successfully
Atom: Atom cannot find Symbol.

both classes are in the same directory
line 28 is a deceleration of a new of an instance heap from the class MaxHeap (which work from the Terminal but not from atom).


Here’s something to try: termination gives you access to a terminal from within Atom. If you type the exact same things and it still fails, then something is wrong with Atom’s environment. If it succeeds from within termination, then script is sending something weirdly.