I have three packages. All three packages are under one package(main package). The structure is like: MainPackage +- package1 +- package2 +- package3
In my code pacakge2 doesn't import any other two packages. So it compiles fine. package3 imports package2. When I compile package3, the error "MainPackage.package2 does not exist". Can anyone help me where am wrong?