Today is Monday, 4th July 2022

Archive for July, 2014

Java Eclipse Tutorial – Part 3: Exploring the Eclipse User Interface

In this video tutorial, we will explore the Eclipse User Interface. This will include windows, menus, views and perspectives.

Please subscribe to this channel 🙂

Download Source Code


Video Transcript
Time – 00:00
Hi. This is Chad (shod) with In this video we will explore the user interface in Eclipse. We will examine windows, menus, videos and perspectives. Let’s get started.

Time -00:12
When you launch the Eclipse application you’ll see a screen that is similar to this. This is the general layout of Eclipse when you use it for job or development. The window has three main sections. On the left hand side is the package explorer. In the center is the main window. At the bottom are additional views for console output, problems and other items.

Time – 00:31
Moving back the package explorer view you can use this to keep track of multiple projects. You can open the projects by simply expanding the folders. Here I have a samples project. I’ll expand the source directory. There is a package called samples. Then, here we have two java files, and Passwordutils. You can expand each one of those and you’ll see a list of methods and fields for those classes. Here I’ll take a look at the generate password method. I can double click it and I’ll see the source code in the main editor window.

Time – 01:01
Now that we have the method open we can view the code, scroll through and click ion all the other code. If you need to get a larger view of your screen you can simply double click the tab at the top. This will maximize the window, just to give you more real state to play around with your code. Then to go back to the regular view you just double click one more time and it’ll pull it up.

Time – 01:20
The Eclipse editor also has another feature that’s very useful. You can hover over method and I like to bring up the job or doc for that method, so that’s the documentation. Here we’ll see the documentation for the append method. Also, at the bottom there is a tab called Javadoc. When you select one of the methods you’ll see it right here instead of having to wait for the popup or worry about the popup moving away, so a very useful feature.

Time – 01:41
If you have any problems with your code, say, for example, I have a typo on the method name and it’ll bring up a red X and also red squiggly to show you there is an error, so you can hover over it and it’ll give it error right there on your screen. Also, you can move to this Problems tab at the bottom, and it’ll give you a list of all the errors so you can work through them accordingly. On this example I’ll just go and fix the error message and I’m ready to go, and the error message goes away at the bottom.
When you run your application, at the bottom of the screen you’ll see the console output. I’ll simply run the app by saying Run as Java application. At the bottom there is a new tab that is showed up, console output. That’s the output in your application. You can double click it to get a much larger view of it, double click again to go back to the original view. When you’re done or you want to clear out this window you simply hit the X and that’ll clear it out. When you run the application one more time you’ll see the same output out there at the bottom with the results of your program.

Time – 02:38
If you accidentally happen to close your console window by mistake, by maybe hitting the X on it, then you can always get back to that console view by going to Window, Show View, Console. That’ll give you the console window back at the original location.

Time – 02:55
Now what I’ll do is I’ll show you the outline view. The outline view is an alternative way of looking at a job or class to get a list of the fields and the methods. You can view the outline view by going to Window, Show View, and Outline. Also bring up the outline view, so it’s over on the right hand side. It has the class, list of fields and the list of methods.

Time – 03:17
One really cool thing about Eclipse is that you can customize the layout of your different views. Instead of having the outline view over in the far right hand side, it would be nice if it’s over on the left side of the window. I can simply grab the tab title and move it one over to the left hand side. Now I have the outline view at the top and the package explorer at the bottom. I’d like for these to show up side-by-side. I can grab this tab and just drag it right next to package explorer, and there you have it. You can go back and forth between them. Say, for example, I’d like to take outline and move it to the bottom, just drag and drop over here to the bottom. That will have the outline view.

Time – 03:55
If you get in a certain weird state like, say for example, I grab this and just move it to the middle and things are not the way I would like you can always reset it back to its original. Eclipse has its idea of a perspective. A perspective is like the default layout for a given scenario. Here we’re using the java perspective. I can simply tell Eclipse to reset the java perspective. I can do that by going to Window, and saying Reset Perspective. This will prompt me if I want to reset. I’ll say yes, and I’m going to back in the original layout.

Time – 04:27
That’s about it. I covered the most common user interface features in Eclipse. Feel free to explore the user interface on your own. Remember you can’t break anything. If you get things out of way just reset the perspective.

Time – 04:41
Let’s go ahead and wrap. On this section we explored the Eclipse user interface. We covered windows, menus, views and perspective. Please subscribe to our channel to view more videos in Eclipse and java. Also, visit our website to download Java source code.

Java Eclipse Tutorial – Part 2: Create a Java Application with Eclipse

In this video tutorial, I will show you how to create a Java application in the Eclipse IDE. I’ll discuss the following topics:

– Create new project
– Adding a new Java class
– Running the application

Please subscribe to this channel 🙂



Video Transcript
Hello. This is Chad (shod) with In this video, I will show you how to create a simple Java application with Eclipse. Let’s get started.

Time – 00:09
I’ll launch the Eclipse application from my desktop. It’ll prompt me for a workspace. A workspace is basically a folder where you can store your Java projects. It’s also a location where you can set up Eclipse preferences for your project. For now, we’ll just go ahead and accept the default project.

Time – 00:29
If this is your first time running Eclipse, you can simply close the welcome window when it shows up. At this point, you should have a screen similar to this. What I’d like to do is go ahead and create a new project. You can create a new project in Eclipse by going to File, New, and then select Java Project. This’ll bring up a dialog that we can enter about the project details. For this example, I’ll call it “ezdemo” and I’ll accept all the other defaults, and I’ll select Finish.

Time – 01:00
Now I should have this empty project. I can expand the window and I can view some details about the actual project. Now, what I’d like to do is create a new Java class. So I can select the project, I can right-click, and I can say New, Class. This’ll bring up a dialog where I can enter details about the class. Here I will say, entered for the name, I’ll say, “HelloWorld” and I will also allow Eclipse to generate some code for me, so I can check the box here and Eclipse will generate a main method for me. I can go ahead and hit Finish.

Time – 01:42
All right. At this point, Eclipse creates a basic Java class for you. Since we selected the option, it’ll also give us a main method. I can move here to the center region and I can add some Java code. I will just move over and say, “System.out.println – Hello World of Java”. This is just a very simple println statement that’ll display “Hello World of Java”. Now what I can do is I can actually save my file. I can move to the toolbar, the floppy disk icon, and hit save. Now our program is saved.

Time – 02:26
Now what I’d like to do is go ahead and actually run the program. I can move over to my file on the right hand, sorry, on the left hand pane, right-click, and select Run As, Java Application. This program will run. The output of the program here is in the bottom window. This is the console window. Note the tab Console. In it, we have the actual text of the output. Hello World of Java.

Time – 02:55
Now what I’d like to do is go ahead and make a small modification to the program. When I enter a for loop, it’s just going to print out the value of an integer x number of times. So “int i=0; i < 5; i++" and then “System.out.println - i” and then I'll also save the program again. Now when I run the program, I can simply select our class, and there's a green button on our toolbar. This is to run the actual application. I can simply select the green button, it'll run it, and so I get my "Hello World of Java" and I also get values 0 through 4. That's it. Time - 03:39 We were successful in creating a very simple Java application using Eclipse. Please subscribe to our channel to view more videos on Eclipse and Java. Also visit our website,, to download Java source code.

Java Eclipse Tutorial – Part 1: Installing Eclipse

I’m starting a new video series on the Eclipse IDE. Here’s my first entry:

In this video tutorial, you will learn how to install the Eclipse IDE.

Please subscribe to this channel 🙂

Installing Java Eclipse IDE

This tutorial shows the steps to install the Java™ Eclipse IDE on your computer.

Note: The instructions and screenshots are shown for Mac® OS X® 10.9.5. Adjust the instructions as needed for your computer’s operating system.

This tutorial provides:

  • the system requirements,
  • how to download Eclipse,
  • how to install it, and
  • how to verify your installation.

System Requirements

Before installing the Java Eclipse IDE (Integrated Development Environment), you must have the Java Development Kit (JDK) installed in your computer. You can download the JDK from If you need help installing the JDK, search for and view relevant videos on YouTube that demonstrate how to install the JDK. The JDK requires:

  • Microsoft® Windows®: Windows Server 2008 RS2/SP1, 64-bit (or Windows Vista® SP2) or later with 128 MB RAM and 126 MB+ disk space.
  • Mac OS X: Mac OS X 10.8.3 or later with a 64-bit browser and admin privileges to install.

If your computer meets the system requirements for the JDK, then Eclipse should work.

To Download Eclipse

The first stage of installing the Java Eclipse IDE is to download it from the Eclipse website.

  1. With a browser, go to
  2. On the Eclipse home page, click Download to go to the downloads page.
    The downloads page shows the downloads that are available for your computer’s operating system.
  3. In the Eclipse IDE for Java Developers section, because of the Java system requirements, to download the proper IDE, click Mac OSX 64 Bit.step3
  4. On the Mirrors page, click the mirror location to initiate the actual download. (In the screenshot, this would be [United States], but you could select any mirror site you wish.)
  5. Wait as the Eclipse IDE downloads onto your computer. (If you wish, you can donate to the Eclipse foundation.)
    Depending on your Internet connection speed, this may take a few minutes.

To Install Eclipse

After downloading the Eclipse IDE, you can install it on your computer.

  1. If necessary, locate the downloaded *.tar or *.zip file.
  2. Double-click the downloaded *.tar (or *.zip file). (If you wish, you can right-click the file and choose Open.)
    When you double-click the file, a new folder with the Eclipse files in it appears in the current folder (or directory). For example, if the *.tar file is in your Downloads folder, the eclipse folder with its files appears within the Downloads folder.
  3. Move the eclipse folder where you want to access it on your computer.
    For example, you may want to have the Eclipse IDE accessible from your Desktop. If so, drag it from the Downloads folder onto your Desktop.

To Verify Eclipse

After placing the eclipse folder in a convenient location, you can verify that the Java Eclipse IDE works.

  1. Open the eclipse folder.
  2. To start the Java Eclipse IDE, double-click the Eclipse
  3. If you get a security message (Mac OS X), click Open.
    On Windows, depending on your security settings, allow Eclipse to start up.
  4. When prompted for a workspace, click OK.
    For now, the default workspace is fine. Eclipse workspaces are covered in another tutorial.
  5. Once Eclipse starts and you see the Welcome page, to get familiar with Eclipse, look at some of the features that are available: Overview, Samples, Tutorials, and What’s New.

At this point you have successfully installed the Java Eclipse IDE on your computer.