I've been working a simple program, and when I run it from the IDE it works 100% as intended, but when I try to compile it using javac from the command line it comes up saying with this:
C:\Users\Lukasz\Documents\NetBeansProjects\NetBeansTest\src\netbeanstest>javac M
ain.java
Main.java:19: error: cannot find symbol
MainFrame myFrame = new MainFrame();
^
symbol: class MainFrame
location: class Main
Main.java:19: error: cannot find symbol
MainFrame myFrame = new MainFrame();
^
symbol: class MainFrame
location: class Main
2 errors
However I am unsure what could possibly missing as all of the files are in the same directory. This is what my main looks like:
public class Main {
public static void main(String[] args) {
MainFrame myFrame = new MainFrame();
myFrame.setVisible(true);
}
}
As you can see it's nothing complicated. Line 19 where the error is MainFrame myFrame = new MainFrame(); but I do not see what could be wrong with it , as it compiles file in the IDE.
Any help here would be very appreciated.
MainFrameclass ?