Reputation: 8522
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
Upvotes: 10
Views: 21331
Reputation: 758
If this is a maven project then you will not find these .project files. So instead of using import -> Existing project to Workspace use Existing Maven Project.
Upvotes: 1
Reputation: 51
If you doesn't have .project .classpath and .settings file, Representing the project isn't eclipse project, so you should create a standard eclipse project
you can following below step:
Remember config your source code location:
project ->Properties ->Java Build Path ->Source
Upvotes: 5
Reputation: 15758
if you are using maven type mvn eclipse:eclipse
on project folder
if you are not using maven, go to eclipse, import->import -> general -> filesystem (then select your directory with source files)
Upvotes: 9