Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Andmore » Creating a new Eclipse project with a Git repository
Creating a new Eclipse project with a Git repository [message #1805094] Fri, 05 April 2019 18:02 Go to next message
Lee Min is currently offline Lee MinFriend
Messages: 1
Registered: April 2019
Junior Member
I have a Git repository that has one .java file in the src file. I also have a .gitignore file with bin inside it. On my laptop is where I created the project and started working on it. I have a desktop too and I would like to be able to work on the same Git repository.

I can clone my Git repository onto my desktop, but I am having trouble creating a new Java project that uses the Git repository. One time I was able to load up the .java file but when I tried to run the program, there was an error stating the main method could not be found.

I would like to be able to run my .java program and commit using Git while using Eclipse. I am a newbie at Java and Git so if you have any questions please ask away.
Re: Creating a new Eclipse project with a Git repository [message #1837687 is a reply to message #1805094] Thu, 04 February 2021 08:25 Go to previous message
Bryan Neewton is currently offline Bryan NeewtonFriend
Messages: 1
Registered: February 2021
Junior Member
I have a similar question. I imported the GitHub project, but how do I set up the project in my Eclipse project workspace?
Do I need to install GitHub workspace(c:\users) to my Eclipse workspace(c:\Projects) before checking out the project ?

My working directory is now c:\users\projectname\.git So I am trying to import the project using the eclipse "import" option. When I try to import by selecting the "Use the new projects wizard" option, the source code is not imported, if I import by selecting the "Import as general project" option, the source code is imported, but the created project created by Eclipse is not a java project. When selecting "Use the new projects wizard" and creating a new java project using the wizard should ' nt automatically import the code ?

[Updated on: Fri, 28 May 2021 14:02] by Moderator

Report message to a moderator

Previous Topic:Can Eclipse run a single instance only of a project?
Next Topic:Debian Bullseye and eclipse-jee-2020-06-R-linux-gtk-x86_64.tar.gz [SOLVED]
Goto Forum:
  


Current Time: Sat Nov 11 06:54:37 GMT 2023

Powered by FUDForum. Page generated in 0.01933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top