I'm new to java and I have simple problem. I want to create package with .java file. What I do is File > Project Structure > Dependencies > Add (plus sign on the right side) > JARs and directories... and select directory "MyClasses" which contains "my" directory with "Test.java" file in it. "Test.java" is simply:
package my; public class Test{ public Test(){ System.out.println("Test complete."); } } Then when I try to use it with import my.Test; it does not work (cannot resolve symbol 'Test'). Even if I try to add this directory again it says it's an "Empty Library" on dependencies tab. What am I doing wrong?