Your first step on Java Learning Path

7 comments

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): https://github.com/agazet/javaLearningPath

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

cloneOrDownload.png

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 https://github.com/agazet/javaLearningPath.git (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.

7 comments on “Your first step on Java Learning Path”

  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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s