This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Hmmm; that seems pretty clear to me. If you have a class like
and you compile it, the package name "com.foo.you" is included in the Foo.class file. Moving the Foo.class file to a different directory doesn't change the fact that class Foo is in package com.foo.you . The only way to change that is to edit the "package" statement in Foo.java and recompile it.