Java Essential Training (2011)

Exploring the Eclipse IDE


Java Essential Training (2011)

with David Gassner

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Video: Exploring the Eclipse IDE

Before we continue on with learning about the Java programming language, I'd like to give you a tutorial on how to navigate around the Eclipse IDE. Eclipse has its own vocabulary, how to refer to various areas of the Eclipse interface and how to configure it. I am going to start with showing you how to import existing projects. If you have access to the Exercise Files for this course, you'll see that they are stored in Chapters. For example, the projects for the current chapter Getting Started are in this folder, 03_GettingStarted.
Expand all | Collapse all
  1. 10m 8s
    1. Welcome
      1m 3s
    2. Is this course for you?
      5m 35s
    3. Using the exercise files
      3m 30s
  2. 31m 25s
    1. The history of Java
      5m 19s
    2. Java compilation and syntax
      8m 55s
    3. Understanding the principles of Java
      8m 28s
    4. Choosing a development environment
      8m 43s
  3. 19m 52s
    1. Installing Java on Windows
      6m 42s
    2. Installing Eclipse on Windows
      3m 19s
    3. Exploring Java on Mac OS X Leopard and Snow Leopard
      2m 27s
    4. Installing Java on Mac OS X Lion
      4m 14s
    5. Installing Eclipse on Mac OS X
      3m 10s
  4. 46m 10s
    1. Creating a Hello World application
      11m 7s
    2. Exploring the Eclipse IDE
      8m 55s
    3. Compiling and running from the command line
      8m 2s
    4. Passing arguments to the application
      8m 17s
    5. Using the Java API documentation
      4m 5s
    6. Memory management and garbage collection
      5m 44s
  5. 58m 57s
    1. Everything is an object
      5m 59s
    2. Declaring and initializing variables
      9m 15s
    3. Working with numbers
      8m 32s
    4. Converting numeric values
      6m 40s
    5. Understanding operators
      7m 58s
    6. Working with character values
      5m 14s
    7. Working with boolean values
      5m 13s
    8. Outputting primitive values as strings
      5m 33s
    9. Creating a simple calculator application
      4m 33s
  6. 53m 41s
    1. Writing conditional code
      5m 35s
    2. Using the switch statement
      8m 50s
    3. Repeating code blocks with loops
      7m 35s
    4. Creating reusable code with methods
      6m 31s
    5. Declaring methods with arguments
      5m 42s
    6. Overloading method names with different signatures
      5m 53s
    7. Passing arguments by reference or by value
      5m 35s
    8. Creating a more complex calculator application
      8m 0s
  7. 20m 31s
    1. Using the String class
      5m 44s
    2. Building strings with StringBuilder
      3m 34s
    3. Parsing string values
      3m 20s
    4. Working with date values
      7m 53s
  8. 20m 44s
    1. Understanding compile-time vs. runtime errors
      4m 5s
    2. Handling exceptions with try/catch
      4m 55s
    3. Throwing exceptions in methods
      2m 50s
    4. Using the debugger
      8m 54s
  9. 32m 22s
    1. Using simple arrays
      4m 47s
    2. Using two-dimensional arrays
      6m 17s
    3. Managing resizable arrays with ArrayList
      7m 14s
    4. Managing unordered data with HashMap
      6m 5s
    5. Looping through collections with iterators
      7m 59s
  10. 52m 3s
    1. Understanding encapsulation
      5m 59s
    2. Creating and instantiating custom classes
      8m 8s
    3. Organizing classes with packages
      6m 47s
    4. Creating and using instance methods
      6m 52s
    5. Storing data in instance variables
      6m 56s
    6. Using constructor methods
      5m 40s
    7. Managing instance data with getter and setter methods
      8m 26s
    8. Using class variables and Enum classes
      3m 15s
  11. 41m 15s
    1. Understanding inheritance and polymorphism
      9m 12s
    2. Extending custom classes
      9m 1s
    3. Overriding superclass methods
      3m 8s
    4. Casting subclass objects
      5m 3s
    5. Understanding interfaces and implementing classes
      4m 2s
    6. Creating your own interfaces
      4m 14s
    7. Using abstract classes and methods
      6m 35s
  12. 32m 17s
    1. Managing files with the core class library
      7m 46s
    2. Managing files with Apache Commons FileUtils
      7m 32s
    3. Reading a text file from a networked resource
      7m 52s
    4. Parsing an XML file with DOM
      9m 7s
  13. 17m 39s
    1. Creating your own JAR files
      4m 54s
    2. Understanding the classpath
      5m 2s
    3. Documenting code with Javadoc
      7m 43s
  14. 47s
    1. Goodbye

please wait ...
Watch the Online Video Course Java Essential Training (2011)
7h 17m Beginner Dec 14, 2011

Viewers: in countries Watching now:

Join author David Gassner as he explores Java SE (Standard Edition), the language used to build mobile apps for Android devices, enterprise server applications, and more. This course demonstrates how to install both Java and the Eclipse IDE and dives into the particulars of programming. The course also explains the fundamentals of Java, from creating simple variables, assigning values, and declaring methods to working with strings, arrays, and subclasses; reading and writing to text files; and implementing object oriented programming concepts.

Topics include:
  • Understanding the history and principles of Java
  • Installing Eclipse and Java
  • Compiling and running from the command line
  • Managing memory and performing garbage collection
  • Declaring and initializing variables
  • Writing conditional code
  • Building and parsing strings
  • Debugging and exception handling
  • Using simple arrays
  • Creating custom classes
  • Working with encapsulation, inheritance, and polymorphism
  • Managing files
  • Documenting code with Javadocs
Android Java Eclipse
David Gassner

Exploring the Eclipse IDE

Before we continue on with learning about the Java programming language, I'd like to give you a tutorial on how to navigate around the Eclipse IDE. Eclipse has its own vocabulary, how to refer to various areas of the Eclipse interface and how to configure it. I am going to start with showing you how to import existing projects. If you have access to the Exercise Files for this course, you'll see that they are stored in Chapters. For example, the projects for the current chapter Getting Started are in this folder, 03_GettingStarted.

Each of these folders constitutes an Eclipse project. I'll double click into one of them named ExploreEclipse. You'll see that it contains a source folder; that's where your Java files go, and a bin folder; that's where the compiled classes are placed. There are also two files named .classpath and .project. If you are working on Windows, you should see them in Windows Explorer. If you are working on a Mac, you won't see the files with the dot prefix displayed in Finder, but they are there.

These are XML files that are used to configure the current project. You can actually work with these files outside of Eclipse very easily, but I've configured them to be importable into Eclipse so you can get started with each lesson very quickly. Here is how you would import that project into Eclipse. From the Eclipse Menu, go to File>Import. In the Import dialog, go to General, and then Existing Projects into Workspace, and click Next.

You can import projects from two formats; an exploded project, where you can see the actual files on disk, that's the kind of projects that I am using; and archived files that are in ZIP format. I won't be using those during this course. So I am going to choose a root directory of an existing project. I'll click Browse. I'll navigate to my Exercise Files, 03_ GettingStarted folder, and I'll chose ExploreEclipse, and click OK. Eclipse detects that there is a project in that folder and it displays the project and checks it by default.

All I am going to need to do is click Finish. But before I do, I'll show you that there is an option labeled Copy projects into workspace. If you leave that option unselected, you'll be importing the existing project into the workspace so that it's displayed in the Package Explorer on the left side of the Eclipse UI, but you'll still be working with the original code. If you check this option, you're making a copy of the project, and the project will be copied into the root folder of the workspace itself. I'll be leaving this option unchecked throughout this course so that I am working with the actual files that I am delivering in the Exercise Files bundle.

I'll click Finish, and that imports the project. I can now open the project, open its source folder, its default package, and there is the code, Now, notice I now have two projects opened and they both have classes named HelloWorld. How do I know which one I am looking at? Here is a little trick, if you move the cursor over the tab, you'll see the entire path, starting with the project name, so this file is for the ExploreEclipse project.

I'll open the class from the HelloWorld project and move the cursor over that tab and show that the pop- up help shows HelloWorld. So when you have multiple classes of the same name, sometimes with more than one project, sometimes within different directories or packages within the same project, you can easily find out which one you are working with. Now, I typically try to keep only one project open at a time. So I am going to go back to my original HelloWorld project, I'll right click on it and choose Close Project.

And now I'm only left with the file from ExploreEclipse. Here are some important terminologies as you work with Eclipse. Each of the rectangular areas is called a View. You might think of those as panels if you've worked say with Adobe or Microsoft software, but Eclipse calls them Views. By default, there is a Package Explorer View, down at the bottom there is Problems View for displaying code problems, a Javadoc View, a Declaration, a Console, and so on.

Over on the right there is something called the Task List View. This is a part of a plug-in called Mylyn, that's delivered automatically with this distribution of Eclipse. We won't be using this plug-in during this course, so I am just going to get rid of it by clicking the Close icon. The other view that appears on the right side by default is called the Outline View, this one is very useful because it lets you navigate around in your code without having to scroll up and down. As your code gets more complex and you have a lot more of it, it's a lot easier to find the code by using the Outline.

Even though this is a very simple class, I can demonstrate this by clicking on the main method, and you'll see that, that method name is highlighted and the cursor moves to that location in the code. So we'll keep the Outline View open. As you work with your code and you have wider lines, you might want to expand the Editor so that it's Full Screen. To do this just double click on the tab at the top of the Editor and that will maximize it. Double click again and it will restore to its original size. I'll also show you that you can expand any of the views, not just the Editor.

I'll maximize the Package Explorer and restore it; I'll maximize the Problems View and restore it, and so on. Every view behaves exactly the same. Another concept that's important to know about in Eclipse is Perspectives. A Perspective in Eclipse is a particular arrangement of views. So the Java Perspective, which is the default Perspective when you first open this Eclipse distribution, has the Package Explorer on the left, the Editor in the center, the Problems, Javadoc, and Declaration View at the bottom and so on.

You can create your own custom Perspectives. So for example, I have the Console View open now, because I've run an application; it's not typically open when you first start the Java Perspective. I have also closed the Task List View. Now I am going to save this as my own custom Perspective. I'll go to the Menu and choose Window> Save Perspective As, and I'll call this CustomForJava, and click OK. I can now switch between different Perspectives.

I can go to the Menu and choose Window> Open Perspective, and I'll see a couple of default Perspectives here; one called Debug and another one called Java Browsing. I'll click Other and I'll see a whole bunch of different Perspectives listed. Java was the default, I'll choose that, and you'll see that the original Perspective or layout returns, including the Task List. But up in the upper right hand corner I now see my CustomForJava Perspective displayed. You can actually move the cursor to the left of the Perspectives and drag this out, so you can see as many Perspectives as buttons as you have available.

And you can easily now switch between them by clicking the appropriate button. I'll typically be using this CustomForJava Perspective throughout the course, but you can create your own Perspective and layout the application however you like. I'll show you one more trick. You can detach any of the views and have them float above the rest of the Eclipse UI. This is particularly useful if you have more than one monitor and you want to move one of the views off to the second monitor. To do this, you right click on the tab for the View and choose Detached.

Now, you can move the view around, you can expand it, and if you have that second monitor, you can move it off to the second monitor. To reattach it, right click on the tab and deselect Detached. The view might drop into an area you don't want. For example, the Outline View just dropped into my bottom dock. But you can click on the tab and drag it wherever you want. So now I've placed it back in its original location. And if at any point you've really messed up your views in a way that doesn't work for you, for example, I am just sort of randomly moving things around now to really mess up my system, you can always reset a Perspective.

Go to the Menu and choose Window>Reset Perspective, and click Yes to confirm. And your original Perspective will return. So that's a look at how to navigate around the Eclipse user interface. I've shown how to use Views and Perspectives, how to create your own custom Perspective, and how to detach views and move them around if you prefer, and finally how to reset a Perspective if you don't like the way things have ended up.

Find answers to the most frequently asked questions about Java Essential Training (2011) .

Expand all | Collapse all
please wait ...
Q: Can I safely use Java 8 with this tutorial or do I have to be using Java 6 specifically?
A: Yes, you can use Java 8 with this course.
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed Java Essential Training (2011).

Return to your organization's learning portal to continue training, or close this page.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.