How to create a project from existing source in Eclipse and then find it?

前端 未结 11 1875
难免孤独
难免孤独 2020-11-28 01:50

I have created several .java files. All of them are located in one directory. I used a text editor to write these files. Now I want to switch to Eclipse. How can I do it? I

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 02:02

    The easiest method is really good but you don't get a standard Java project, i.e., the .java and .class files separated in different folders.

    To get this very easily:

    1. Create a folder called "ProjectName" on the workspace of Eclipse.
    2. Copy or move your folder with the .java files to the "ProjectName" folder.
    3. Create a new Java Project called "ProjectName" (with the Use default location marked).
    4. Press and that's it.

提交回复
热议问题