Code is not supposed to be moved from its original location. It has often relations with other resources in the module.
If you do this, then use a IDE (Eclipse) to perform this kind of code refactorings and make sure you understand enough about java to understand its errors. Note that the code will be reverted in its original location anyway each time you update the module.