Another option is to go into your src folder in the relevant project folder in your workspace and there, create a new folder. Name that folder as whatever package name you want and put all your .java files into that folder. Refresh eclipse, close the .java files and open from the new location.