Could you import A package into B file instead becauseyou already created a package A in A file? Or youcould create one of the two as a proxy class. Well,just a thought.