My query is similar to How to import classes defined in other packages in same project in eclipse?, which was closed as “unclear”, without any proper solutions being suggested. Let me try to see if I can describe my setup more clearly than the original poster.
I have a project named MyProject. Under the MyProject project there are three packages, the default package, Pkg1 and Pkg2. The default package contains ClassA, Pkg1 contains ClassB and Pkg2 contains ClassC.
ClassC (in Pkg2) needs to reference ClassA (in default package) and ClassB (in Pkg1). The import statement "import Pkg1.ClassB;" works like a charm but I am unable to figure out how to import ClassA.
Regards, Sandeep