Your question needs some elaboration, possibly try including your code.
Maybe your trying to compile a class file (no main method), try using a test file to call either constructor or methods of the class your trying to compile, compiling the test program will then in turn compile the package program.(although admittedly i'm only a greeeeeenhorn!).