Lesson 1: Setting up a Java Development Environment

So, this needs a little more setting up than say Visual Studio with C++ or even the free CodeBlocks for C++.

For C++: you install CodeBlocks (or your IDE of choice) > select the settings when installing > open the app when it’s installed > start a new project > write your hello world code > profit!

For Java, the first few steps are different and might be missed if you don’t know what you’re doing.

NOTE: If you aren’t sure what an IDE is or just want a basic vocab refresher, check out my Learn To Crawl page!

  1. First, you need the JDK or Java Development Kit. You also want the SE version (Standard Edition).
    1. Link to Oracles Download page of JDK8
    2. Or you can Google “Java JDK download” and you should get plenty of hits and be able to find the latest JDK for download.
    3. Some tutorials may indicate you need the JRE and the JDK as separate downloads but that’s not quite accurate. If you download the JDK from Oracle’s site, which is for Java Development, it includes the JRE as well.  If you are only looking to run Java programs and not develop them, the standalone JRE is what you need.
    4. In our case, we are learning to develop Java applications so the JDK has everything we need!
  2. Now it’s time to download your IDE!
    1. Eclipse, NetBeans, and IntelliJ IDEA are going to be the three biggest IDEs out there. If you research “Best Java IDE,” these 3 are going to top almost every list.
    2. I found myself downloading Eclipse because it was the first one I came across that someone raved about. It’s honestly personal preference but I’m guessing that my tutorials will all be explained using Eclipse Oxygen (newest version at the writing of this).
    3. Very easy to find and download. Just google: “Java eclipse download” or click this link: Eclipse Packages.
    4. Grab the “Eclipse IDE for Java Developers” and not the one for EE developers or C/C++ or any of the others on the list.
  3. Once you download your Eclipse IDE, it will come in a zip file (at least mine did) and there is no installation. It’s the full application just zipped up.
    1. Make sure to unzip it into its own folder and stick that folder wherever you want.
    2. There is an Eclipse.exe file inside of it, just double click it to launch the IDE.
    3. If you want, right click the exe and select “send to desktop” to create a desktop shortcut.

Our development environment is now rearing and ready to go.  Let’s write the fabled “Hello World” application in our next tutorial!

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 )

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s