Have you tried with importing all classes of the p1 package.import p1.* ;try including above line in the main file of yours.Hope this will help....