Are you all set up? If not check how to prepare your backpack for Java hike.

Read on if you’re ready to go.

Get the code base

I’ve prepared for your first Java Gradle Project. You can get it from my GitHub repository (and no, you don’t have to register):

Click Clone or download and copy the link to the clipboard as visible below.


Set up Git Repository in Eclipse

  1. Start Eclipse and select a workspace.
    • I recommend you create a separate folder for this learning path under your workspace path (I’m using Windows OS right now and my path is: D:\private\java\workspace\learningPath). you can type the folder name, it’ll create automatically
  2. Open Git Perspective
    1. Go to Window > Perspective > Open Perspective > Other…
    2. Select Git
    3. Open (it should open automatically)
  3. In the Git Repositories view choose Clone git repository and paste (the one you copied to get the code base) into URIcloneRepoEclipse
  4. You can leave User and Password empty for now
  5. Set the directory on the next screensetDirectory.PNG
  6. Finish
  7. Right click on your repository > Import projects…importProjects.png
  8. As import source set your local git repository (the directory you set in 5. )importSource.PNG
  9. Finish

Import the Gradle Project

Remove imported project from Eclipse

  1. Go to Java EE perspective (perspective selector is in right upper corner)perspective.png
  2. In project explorer, you can see the project now.
  3. Right click and choose delete.delete.png
  4. Make sure, that project content remains on disk (must be unchecked)
  5. Click OKdeleteResources.PNG

Import the projects as Gradle Project

  1. Go to File > Import…
  2. Choose Existing Gradle Project and click nextexistingGradle.PNG
  3. Click next on Welcome screen
  4. On Import Gradle Project screen set the project root directory to the Calculator in your project directory (as in Set up Git Repository in Eclipse 5. e.g.: D:\private\java\jumpstart\javaLearningPath\Calculator )importGradleRootDir
  5. Finish (or leave Gradle Wrapper on Options screen if you got there)
  6. Now you’re all set up.

Let’s take a look at the project.


  1. no idea what I’ve actually done right now… but succesfully 😀

    waiting for next todos 🙂 which will explain what is it all for (I mean all these procedures at the beginning, usage of Gradle etc.)

    Liked by 1 person

    1. Keep on reading. I was the same. When I set up my first fully fledged project I was all lost and whiny… Now I can get on 😉


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s