简体   繁体   English

在Eclipse中导入Java项目

[英]Importing Java Project in Eclipse

i know this will be pretty straight forward but i cant do it even after doing lot of Google search .. i am downloading projects from Planet-source-code and then modifying them for learning purpose . 我知道这将非常简单,但是即使经过大量Google搜索,我也无法做到。.我正在从Planet-source-code下载项目,然后出于学习目的对其进行修改。 Problm is that when i download files and unzip them folder contains .java .jar images and other resources but when i import complete folder this is result 问题是,当我下载文件并解压缩它们时,文件夹包含.java .jar images and other resources但是当我import complete folder这是结果

在此处输入图片说明

Please guide me how to import complete projects with all resources , i found official link here Importing existing projects but that did not work , please help 请指导我如何使用所有资源导入完整的项目,我在这里找到了官方链接导入现有项目,但是没有用,请帮助

This zip file don't contain a java project. zip文件不包含Java项目。 Unzip the zip file. 解压缩该zip文件。 In eclipse create a new Java project (a blank project). 在eclipse中,创建一个新的Java项目(一个空白项目)。 Then copy the DieRoll.java file from the unzipped folder in your eclipse project. 然后从eclipse项目的解压缩文件夹中复制DieRoll.java文件。

当您将现有项目导入到工作空间中时,您必须将项目提取到工作空间文件夹之外,然后选择它,如果您在同一工作空间中提取项目,则将导致冲突,这就是错误的原因

This zip file don't contain a java project. 该zip文件不包含Java项目。 Unzip the zip file.Then do as follows. 解压缩该zip文件,然后执行以下操作。

在此处输入图片说明

see here you can import from here.After clicking on import you can select file type. 请参阅此处,您可以从此处导入。单击导入后,您可以选择文件类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM