I'm doing my program. I'm using Sublime Text and for compiling basic Windows CMD. I have folder, where I have every file (folde todolist) In this folder I have package. In this package I have class (Gui.java(packgae (folder) gui_pckg)). Code in this class looks like:
package gui_pckg;
import javax.swing.; import java.awt.;
public class Gui {
public JFrame frame = new JFrame("To Do List");
public Gui() {
frame.setSize(500, 800);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
And it's compiled well.
But, when I'm trying to compile Main.java, it throws errors. Code in Main.java:
import gui_pckg.Gui;
public class Main {
public static void main(String[] args) {
Gui gui = new Gui();
}
}
For compiling I'm typing basic compile command into cmd.
Please help.