I am getting an error trying the run AP Magpie Program

Question:
I uploaded the files for the AP Magpie Program but when I try to run them I get the following error.

Current behavior:
error: invalid flag: ./Magpie
Usage: javac
use --help for a list of possible options

Desired behavior

Repl link:

code snippet