How to configure a project imported from GIT to be a Java project in Eclipse?

I’ve imported a project from Git in Eclipse using this method:
File > Import > Git > Projects from Git > Next > Clone URL .

At this point I inserted the URI like this .
Then my user and password, and the project was imported.

  • How to make eclipse remember ssh key passphrase?
  • Eclipse - Cannot complete the install because one or more required items could not be found (org.apache.httpcomponents.httpclient)
  • Problems with pushing to github repository from Eclipse: Auth fail
  • Removing SVN username and password from Eclipse does not work in Windows 7
  • Stop Eclipse/Subversive from setting svn:mime-type to text/plain on initial commit
  • Commit with specific date using JGit Eclipse
  • The problem is that Eclipse didn’t recognize it as a Java project, and I really don’t know why.

    As consequence, I can’t see errors or warnings on my project and neither use autocomplete, I’m getting this message “This compilation unit is not on the build path of a Java project”.

    Also, right click on My-Project > Build path shows the message “No actions avaliable”.

    If you need more information to help me, could you ask me on comments, please?
    I appreciate your attention!

  • git-slave for windows
  • Generating SSH keys for 'apache' user
  • removing local git repositary from Xcode Project?
  • How do I move an issue on github to another repo?
  • What's the difference between `git diff --patience` and `git diff --histogram`?
  • git says project description file hasn't been modified even when it is actually modified
  • 2 Solutions collect form web for “How to configure a project imported from GIT to be a Java project in Eclipse?”

    Most people don’t include build files in repositories, only source. What you need to do is create a new Eclipse project the create a Git repo on top of that:

    • Create a new Eclipse project, and go to it with your terminal.
    • git init to initialize a repo.
    • git remote add origin to add the remote.
    • git pull -u origin master to pull the changes.

    Also, make sure that when you commit, you don’t add build files that the author kept out. You can do this via a .gitignore file. Simply take this file and add it to your project directory.

    This method applies to most Git repositories, as build and compiled files are usually left out.

    Note that this method requires that you install Git for command line (or Git Bash). You can get Git at their website.

    Since you already have the source code downloaded from the git repository, you should be able to create an Eclipse project from the existing source code.

    Git Baby is a git and github fan, let's start git clone.