How to replace the missing project . settings . Import the Java project of the classpath file into eclipse

I got a java source code from the opensource project The source code does not have eclipse project specific files, such as project,. classpath,. Setting (directory) How do I import this java source into eclipse?

I have no POM to specify XML (MVN) file So I tried manual

Follow the steps below

>Create a directory with ProjectName and directory "SRC" under ProjectName. > Move the source code (i.e. org / Apache / Hadoop directory) to the SRC directory under ProjectName. > Create a sample project in eclipse, go to the workspace, and change the project name settings,. Classpath file to modify Project XML file > copy the modified ". Project" file and ". Settings". Classpath "from the eclipse workspace project directory to the newly created directory" ProjectName / "5 Use the eclipse import option under the file menu to import the newly created project. Use the existing project into workspace option > take the project root directory as the ProjectName directory

Solution

If you use Maven type MVN Eclipse: Eclipse on the project folder

If you don't use maven, go to eclipse, import - > Import – > General – > filesystem (then select your directory with the source file)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>