How to import a java project missing .project .settings .classpath files into eclipse -
i got java source code opensource project. source code doesn't have eclipse project specific files such .project ,.classpath ,.setting(directory). how can import java source eclipse ?
i don't have pom.xml(mvn) file specify. tried manually.
followed below steps solve
create directory projectname , directory "src" under projectname. move source code ( ie: org/apache/hadoop directory) src directory under projectname. create sample project in eclipse , go workspace , modify .project xml file changing project name ,.settings ,.classpath files copy modified ".project" file , ".settings" ,".classpath" eclipse workspace project directory newly created directory "projectname/" 5 .use eclipse import alternative under file menu import newly created project utilize existing project workspace alternative give project root directory projectname directory.
if using maven type mvn eclipse:eclipse
on project folder
if not using maven, go eclipse, import->import -> general -> filesystem (then select directory source files)
java eclipse
No comments:
Post a Comment