Ask coding questions

← Back to all posts
How to create a Java Package
acohenwolcott (0)

I want to split my classes into different files using Java Packages. However, the compiler cannot find the classes in other files and I'm getting errors:

Main.java:12: error: cannot find symbol
MyFrame myFrame = new MyFrame();
^
symbol: class MyFrame
location: class Main
Main.java:12: error: cannot find symbol
MyFrame myFrame = new MyFrame();
^
symbol: class MyFrame
location: class Main
2 errors

Comments
hotnewtop
EpicGamer007 (1736)

Can you attach the repl? I need to see the file and folder structure