[英]How to import a java project missing .project .settings .classpath files into eclipse
I got a java source code from an opensource project. 我从opensource项目获得了一个java源代码。 The source code doesn't have eclipse project specific files such as .project ,.classpath ,.setting(directory). 源代码没有eclipse项目特定文件,如.project,.classpath,.setting(目录)。 How can I import that java source into eclipse ? 如何将该java源导入eclipse?
I don't have pom.xml(mvn) file to specify. 我没有要指定的pom.xml(mvn)文件。 So I tried manually. 所以我尝试了手动。
followed the below steps to solve 按照以下步骤解决
if you are using maven type mvn eclipse:eclipse
on project folder 如果你使用maven类型mvn eclipse:eclipse
项目文件夹上的mvn eclipse:eclipse
if you are not using maven, go to eclipse, import->import -> general -> filesystem (then select your directory with source files) 如果您不使用maven,请转到eclipse,import-> import - > general - > filesystem(然后选择包含源文件的目录)
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 如果你没有.project .classpath和.settings文件,代表项目不是eclipse项目,所以你应该创建一个标准的eclipse项目
you can following below step: 你可以按照以下步骤:
Remember config your source code location: 请记住配置您的源代码位置:
project ->Properties ->Java Build Path ->Source project - > Properties - > Java Build Path - > Source
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.