I have made a directory called "middle" and inside it another directory called "tier" and inside the "tier" directory are OrderManager.java which is an interface and OrderManagerImpl.java having its implementation.
The problem is when I try to compile OrderManagerImpl.java from outside the package middle.tier it compiles but when I do the same inside the package it gives me the following error:
OrderManagerImpl.java:6: cannot find symbol symbol: class OrderManager public class OrderManagerImpl extends java.rmi.server.UnicastRemoteObject implements OrderManager{
Why is it so?