While working on a project, I tried to compile my java file in Terminal, but I got the error "cannot find symbol". I usually compile and run my code in Eclipse's IDE so this is my first time using Terminal. The errors seem to appear when I try to create instances of a class written in the same folder.
MainPanel.java:30: error: cannot find symbol
static Player p1 = new Player( 30, 245, 0 );
^
symbol: class Player
location: class MainPanel
How could I solve this problem? Thanks!