How to import a GIT non-Eclipse Java project into Eclipse?

后端 未结 6 462
一生所求
一生所求 2020-12-02 06:54

I have some problems importing a Java project into my workspace. I am following this tutorial - however I can not use the final Import existing projects ste

6条回答
  •  一生所求
    2020-12-02 07:16

    May not be applicable to your project but if you are using Maven in the project, you can import it as Maven Project from Eclipse if you have m2e installed, this way all the needed files like .project, .classpath will be generated. I think that is a good approach because if your pom.xml is well-written, it can contain all the needed information about the project such as build target directory, classpath, java version etc., and it will probably work with most of the populer IDEs.

    I suggest to get used to use Maven on every java project, even for a simple hello world application because I see it as some sort of "standardization" for Java projects.

提交回复
热议问题