Whenever I try to use package declarations on classes, even when I put them in a folder with the same name as the package declaration, are unrecognizable to other classes. However, when using the NetBeans
IDE I do not have this problem.
For Example:
Here is the class CircleTest in the same folder called "graphics:"
When attempting to compile, I get these errors, indicating the class Circle can not be found:
CircleTest.java:4: cannot find symbol
symbol : class Circle
location: class graphics.CircleTest
Circle quack=new Circle();
^
CircleTest.java:4: cannot find symbol
symbol : class Circle
location: class graphics.CircleTest
Circle quack=new Circle();
^
2 errors
Nevertheless, it runs just fine in the IDE.