I am a total beginner in java and need help. I have file "OOP_Introduction_Examples" and I need to import examples from it in eclipse.
我是java的初学者,需要帮助。我有文件“OOP_Introduction_Examples”,我需要在eclipse中导入它的例子。
Here is what I have when I open that file:
这是我打开该文件时的内容:
What excatly I need to do to open it in Eclipse (Which one of these)? Should I just import -> .project? I tried something, but doesn't look good.
在Eclipse中打开它需要做些什么(其中一个)?我应该导入 - > .project吗?我试了一下,但看起来并不好。
2 个解决方案
#1
1
- From the main menu bar, select File > Import.... The Import wizard opens.
- Select General > Existing Project into Workspace and click Next.
- Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
- Under Projects select the project or projects which you would like to import.
- Click Finish to start the import.
从主菜单栏中,选择“文件”>“导入...”。将打开“导入”向导。
选择General> Existing Project into Workspace,然后单击Next。
选择“选择根目录”或“选择存档文件”,然后单击关联的“浏览”以找到包含项目的目录或文件。
在“项目”下,选择要导入的项目。
单击“完成”开始导入。
#2
0
I can't comment so I put this as an answer.
我不能发表评论,所以我把它作为答案。
If you choose "select root directory" you are gonna import a directory which contain the project (files shown in the picture). So, you choose the directory that contains files and folders from the picture (bin, src, .priject ....).
如果选择“选择根目录”,则将导入包含项目的目录(图中显示的文件)。因此,您从图片中选择包含文件和文件夹的目录(bin,src,.priject ....)。
For exemple, if you have the next project directory/file tree, click on myProject directory and valid your choice.
例如,如果您有下一个项目目录/文件树,请单击myProject目录并确认您的选择。
myProject
|-.settings
|-src
|-bin
|-classpath
|-project
#1
1
- From the main menu bar, select File > Import.... The Import wizard opens.
- Select General > Existing Project into Workspace and click Next.
- Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
- Under Projects select the project or projects which you would like to import.
- Click Finish to start the import.
从主菜单栏中,选择“文件”>“导入...”。将打开“导入”向导。
选择General> Existing Project into Workspace,然后单击Next。
选择“选择根目录”或“选择存档文件”,然后单击关联的“浏览”以找到包含项目的目录或文件。
在“项目”下,选择要导入的项目。
单击“完成”开始导入。
#2
0
I can't comment so I put this as an answer.
我不能发表评论,所以我把它作为答案。
If you choose "select root directory" you are gonna import a directory which contain the project (files shown in the picture). So, you choose the directory that contains files and folders from the picture (bin, src, .priject ....).
如果选择“选择根目录”,则将导入包含项目的目录(图中显示的文件)。因此,您从图片中选择包含文件和文件夹的目录(bin,src,.priject ....)。
For exemple, if you have the next project directory/file tree, click on myProject directory and valid your choice.
例如,如果您有下一个项目目录/文件树,请单击myProject目录并确认您的选择。
myProject
|-.settings
|-src
|-bin
|-classpath
|-project