This section of the guide covers how to open code a git repository in Eclipse. It is very important that you DO NOT simply open the project: instead, you must import the code as a general project.
You should also make sure you're connected to the internet when performing these steps. When you're importing the example, Eclipse will automatically try and download some libraries you need to run your code.
IMPORTANT: click "Cancel" to exit the wizard. We need to exit now because the Git wizard does not know how to import Gradle projects properly.
Here is where you need the directory your project was downloaded to. Navigate to where your Gitlab project is located and select it.
Note: this box contains optional background information: you do not need to know any of the information presented here.
When working on larger projects, programmers tend to face a few different problems:
It turns out that we can use the same tool to answer all of these questions: we can use a build manager. Basically, what happens is that we record all of the libraries we need, all project configuration, and all build instructions inside of a special file our build manager understands.
Conveniently, it also turns out that all (modern) IDEs have great support for a wide variety of popular build managers: they can read the special file and automatically convert all of those instructions into their IDE-specific configuration.
In our case, we're using a build manager called "gradle". Try opening up
build.gradle inside of your project. If you skim through it, you
can see that the file configures a variety of things and specifies a handful
of 3rd party libraries we want to install and use. (We've commented this file
fairly heavily in case you're curious).
Gradle isn't the only build manager – other popular build managers for Java include Ant, Maven, and Ivy.
If you start working with other programming languages, you'll learn that they all also have their own build managers and conventions for managing large projects. However, at a high level, they all work in the same way: you specify the libraries you need and your build instructions in some file(s), and run some sort of build tool to manage everything for you.