简体   繁体   English

如何在Eclipse中构建和运行现有项目?

[英]How do I build and run an existing project in Eclipse?

I would like to start the program from this repository: https://github.com/SaifurRahmanMohsin/Personal-Diary but when I dowload it and open the project in Eclipse I am not able to build/compile it. 我想从此存储库启动程序: https : //github.com/SaifurRahmanMohsin/Personal-Diary,但是当我下载并在Eclipse中打开项目时,我无法构建/编译它。 So i also can't run it. 所以我也不能运行它。

Do I have to change run configurations or build a working set or something like that? 我是否需要更改运行配置或构建工作集或类似的东西? I usually don't work with Eclipse so I am a bit overwhelmed. 我通常不使用Eclipse,所以有点不知所措。

screenshot eclipse1 eclipse1屏幕截图

screenshot eclipse2 eclipse2屏幕截图

Check out. 查看。 Delete the files .project , .classpath , and folder .settings before you import because those hold data unrelated to your system. 导入之前,请删除文件.project.classpath和文件夹.settings ,因为这些文件中包含与系统无关的数据。

File, Import, Project from existing sources 从现有来源进行文件,导入,项目

Pick the inner Personal Diary folder, not the repo folder 选择内部的Personal Diary文件夹,而不是回购文件夹

You will need to download two libraries to add to the classpath 您将需要下载两个库以添加到类路径中

JSON-Simple and Apache HTTP Client JSON-简单和Apache HTTP客户端

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

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