Make sure the directory structure that your code resides parallels the package structure you have created. Further, when you package an app into a jar you need to maintain this structure.