Intro to Java programming, Unit 2: Setting up your Java development environment


Hi. I’m Steve Perry, and in this video I’ll show
you how to set up your Java development environment, including the Eclipse IDE. In this video, we’ll download and install
Eclipse. Then we’ll have a tour of the Eclipse IDE
environment. And, finally, we’ll create a Java project
using Eclipse. By the end of this video, you should have
a complete working Java development environment, including the Eclipse IDE. Before we get started, make sure you have
the Java Development Kit, or JDK, installed on your machine. Specific instructions for your OS are included
in the learning path. To download Eclipse, let’s point our web browser
to the Eclipse packages download page, located here: http://www.eclipse.org/downloads/eclipse-packages/. Since the Mars release of Eclipse, the preferred
method of downloading is through the use of the installer. More details about the Eclipse installer can
be found by clicking on the “Find out more” link here. As you can see, there are step-by-step instructions
for installing the installer. To hide the instructions, click the Hide link. To download the Eclipse installer, click on
the link that corresponds to your OS. In my case, I’m on a Mac, so I’ll click the
“64 bit” link for Mac OS X. On the next page, click the Download link. That will let you use the default mirror. When the download finishes, open the file
and run the installation program. Just accept the defaults. You can use the installer to install much
more than the Eclipse IDE, but that’s all we’ll use it for in this video. Once the installation finishes, let’s start
Eclipse. We can click the Launch icon in the installer,
but that’s not something I recommend we do every time. I prefer to launch Eclipse from my local hard
disk. In my case, the location is /Users/sperry/eclipse/java-neon. I’ll navigate to that location and then launch
Eclipse. When Eclipse starts, it asks what workspace
we want to open. Just go with the default here. When Eclipse finally starts, we see a welcome
screen, like this one. So now we’ve downloaded and installed Eclipse. Now let’s have a brief tour of the Eclipse
IDE. The welcome screen displays each time you
enter a new workspace and will continue to display each time you enter that workspace. You can disable this behavior by unchecking
the “Always show Welcome at start up” check box. When you’re new to Eclipse, this welcome screen
can come in handy, since it contains links to the kinds of things you normally do in
Eclipse. Before we write any code, let’s verify that
Eclipse is installed correctly. To do this, we go to Preferences>Java>Installed
JREs. And let’s make sure that Eclipse is pointing
to the correct JDK, which should be the one you installed before you started this tutorial. Once you’ve verify that, we are ready to write
code. But there are a few things I’d like to show
you first about how Eclipse is organized. When you write Java code, your code is organized
into projects. Think of a project as basically like an application. You will group your projects into workspaces. You can have as many workspaces as you like,
but for now, we’ll use a single workspace. There are many aspects to an application,
and a perspective is the way we look at a project. Within a perspective are various views, such
as: * Package Explorer
* Outline and * Problems We’ll look into perspectives and views later
in the learning path. For now, think of a perspective as the “how”
of looking at a project, and a view as the “what” of the project. This concludes our brief tour of the Eclipse
IDE. Next, we’ll create a project. With Eclipse open, choose File>New>Java
Project… and we see the New Java Project wizard open. Let’s call our project “Tutorial,” and we
use the workspace location we opened when we opened Eclipse. Next, we’ll verify the JDK that we’re using. And we click Finish to create the project. It’s just that simple. In future videos, we will look at how to write
code using this new project we just created. That’s all for now. Thanks for watching!

One thought on “Intro to Java programming, Unit 2: Setting up your Java development environment

  1. Hi there!
    Please post the URLs shown in the video here. Typing links from a video is rather tedious. And searching them in the transcript is as well. The links are also missing from the developerworks site…

Leave a Reply

Your email address will not be published. Required fields are marked *