I got a java source code from an opensource project. The source code doesn't have eclipse project specific files such as .project ,.classpath ,.setting(directory). How can I import that java source into eclipse ?
I don't have pom.xml(mvn) file to specify. So I tried manually.
followed the below steps to solve
- Create a directory with the projectName and a directory "src" under projectName.
- Move the source code ( ie: org/apache/hadoop directory) into src directory under projectName.
- Create a sample project in eclipse and go the workspace and modify the .project xml file by changing the project name ,.settings ,.classpath files
- Copy the modified ".project" file and ".settings" ,".classpath" from eclipse workspace project directory to the newly created directory "projectName/" 5 .Use eclipse import option under File menu to import the newly created project use Existing project into workspace option
- Give the project root directory as projectName directory.