This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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!).