How to Add Existing Files to Eclipse Project
To add an existing file to a project in Eclipse:
- Select (cut, copy) files you wish to add to the project.
- Place them in the correct folder
-.java files go in the src folder
-.class files go in the bin folder
-Other files such as pictures can go in the project’s main folder
- Go to File -> Refresh or press F5
The projects in the Package Explorer should be updated to show all files currently in each directory. You can now access and save the files in the project, just as you would had you created the file yourself.