简体   繁体   English

Eclipse:取消选中“使用默认位置”

[英]Eclipse: Uncheck "Use Default Location"

In order to import the Java project in following Github repository: ( https://github.com/drewhannay/paxos#setting-up-the-project-in-eclipse ) and follow the steps as explained in the repository as follows:为了在以下 Github 存储库中导入 Java 项目:( https://github.com/drewhannay/paxos中的项目解释如下:

Setting up the project in Eclipse:在 Eclipse 中设置项目:

  • Click "New" in Eclipse在 Eclipse 中点击“新建”
  • Select "Java Project" Select “Java 项目”
  • Project Name: "Paxos"项目名称:“Paxos”
  • Uncheck "Use Default Location" and enter the path to this directory取消选中“使用默认位置”并输入此目录的路径
  • Click "Finish".单击“完成”。 Eclipse will set up the project correctly using the existing source code. Eclipse 将使用现有源代码正确设置项目。
  • Right click the project and click "Configure Build Path"右键单击项目,然后单击“配置构建路径”
  • Click "Add JARs..."点击“添加JARs...”
  • Select the guava-13.0.1.jar file from the lib directory within the project Select 项目内 lib 目录中的 guava-13.0.1.jar 文件
  • You're done!你完成了!

I have downloaded the .ZIP file of the project and extracted it in Eclipse workspace.我已经下载了项目的.ZIP文件并将其解压到 Eclipse 工作区中。

I do know what does it mean by saying "enter the path to this directory" .我知道说“输入此目录的路径”是什么意思。 Which directory exactly?究竟是哪个目录

在此处输入图像描述

By "this directory" it is probably referring to the location of the cloned repository. “此目录”可能是指克隆存储库的位置。

The cloned repository is the local copy of the repository that you have on your machine.克隆的存储库是您机器上的存储库的本地副本。

The simplest method is to press the "Code ▼ > Download zip" button, and extract the zip file.最简单的方法是按“代码 ▼ > 下载 zip”按钮,然后解压 zip 文件。 This method will not necessarily work for all projects.此方法不一定适用于所有项目。

You can alternatively install Git , and run git clone https://github.com/drewhannay/paxos.git in the terminal. You can alternatively install Git , and run git clone https://github.com/drewhannay/paxos.git in the terminal. This method is better if you actually plan on modifying the project, and you will thank yourself for it later.如果你真的打算修改项目,这种方法会更好,以后你会感谢自己的。

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

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