简体   繁体   English

无法使用JDK 1.6将Git存储库映射到Eclipse Juno中的Java项目中?

[英]Inability to map Git Repository into a Java Project in Eclipse Juno with JDK 1.6?

I am trying to add a project in my Eclipse that is forked from the Github. 我试图在我的Eclipse中添加一个从Github分叉的项目。 It is a starter code and this is the first time Iam working with Git. 这是一个入门代码,这是Iam首次使用Git。 I am under the impression that the Git code will come into my Eclipse environment under some Folder structure. 我觉得Git代码将以某种Folder结构进入我的Eclipse环境。 But I am not able to map the source code into my Local. 但是我无法将源代码映射到本地。 Steps I have followed are the following :- 我遵循的步骤如下:

    * Created repository in Github. 
    * Forked the project. 
    * Setup username and user email from Git Shell application.
    * Cloned the repository in my Git Desktop application. 
    * Using Team Command in Eclipse I tried adding project Share project, but the forked project that I want to be present there is not displaying.

Pardon my inability to identify certain obvious infos. 请原谅我无法识别某些明显的信息。 let me know if any info is missing and ill append the info here. 让我知道是否缺少任何信息,请在此处附加信息。

Along with that here is the image of the package explorer. 随之而来的是包浏览器的图像。

在此处输入图片说明

As you can see the newsindexer-1 is the project that I have downloaded from Github. 如您所见,newsindexer-1是我从Github下载的项目。 But I was under the impression that when I run configuration the Runner.java or Tester.java I would be able to pass some arguments. 但是我给人的印象是,当我运行Runner.java或Tester.java进行配置时,我将能够传递一些参数。 But I cant. 但是我不能。 Plus when I go to properties I don't see 另外,当我去房地产时,我看不到
any option of giving the Java Class Path et cetera. 提供Java类路径等的任何选项。

Follow following steps to add java facet to your project 请按照以下步骤将java Facet添加到您的项目中

  • In the Project Explorer, right-click the project (newsindexer-1) and then select Properties, or right click on project and check Configure options 在项目资源管理器中,右键单击项目(newsindexer-1),然后选择“属性”,或右键单击项目并选中“ Configure选项

  • Select the Project Facets page in the in the Properties window. 在“属性”窗口中选择“项目构面”页面。 This page lists the facets in the project and their versions. 此页面列出了项目中的构面及其版本。 Check on java facet there 检查那里的java方面

  • Click on apply. 点击申请。 see if J appears in your Project listing. 看看J出现在您的项目列表中。 (Like you have on you NewsIndexer project) (就像您的NewsIndexer项目一样)

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

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