This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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!).