Packages in Java are not hierarchically related in terms of import and compilation - for example, you cannot import com.google.collections.*by import com.*.
Packages in the collection library that you mentioned:
com.google.common.core.*
com.google.common.annotations.*
com.google.common.collect.*
Try importing these packages explicitly. If you use an IDE like Eclipse, it can sort all your import statements for you.
:
-cp . , , , , , , : java -cp .:google-collect-1.0.jar MultiThing