For this project you will install and then explore Eclipse and NetBeans Java IDEs. In either case you will need to have installed the JDK too, which in turn includes a JRE.
Complete directions for installing all software as used in the classroom can be found in the course resources, in the Java Setup link. What follows are the brief directions for setting up just the two IDEs.
Eclipse is easy to install on a Windows platform.
You download the “zip” file for Eclipse and extract
the contents into “
This creates a new sub-directory “
Open that folder and right-click on the file
Next, right-click on the “
Start” button and
click on “
Next open “
Finally right-click in this window and chose
(You can add additional short-cuts to your desktop or the
quick launch bar, if desired.)
Eclipse is now installed and ready to use. Before getting started, it is a good idea to go to the “Help” menu and select “Check for Updates”.
My Documents\Eclipse-workspace” or “
C:\Temp\Eclipse-workspace”, depending on if the computer is single user or multi-user. (You can click the button to make Eclipse remember your choice.)
After this go back to the Welcome page and chose Tutorials → Create Hello World Application. (This will provide a step-by-step instruction on how to create a Hello World application.)
As of Eclipse Galileo (v3.5) the tutorials and samples are missing and the links on the welcome page don't work! Until that gets fixed, try this alternative tutorial: www.vogella.de/articles/Eclipse/article.html.
If you lose the “Welcome” window, you can bring it back from the Help→Welcome menu. There are many other tutorials and guides you can read. Consider reading the CVS and ant tutorials. You can find these in the Workbench User Guide.
You can read the Eclipse Documentation online, especially the Workbench User Guide and the Java Development User Guide.
jarfiles placed into the Eclipse install directory. There are hundreds available to extend Eclipse with additional functionality, such as XML editors,
Junittest case editors, UML GUI drawing tools (that generate Java code for you), and Java EE tools.
A collection of these projects useful for Java and Java EE development has been bundled together under the name Juno, which is what you have installed. To install other Eclipse plug-ins:
Install New Software...”. Now tell Eclipse where to look for the new plug-ins. You should select “The Eclipse Project Updates - URL”, but to add some third party plug-in you need to add their site to the list, bu clicking on the “Add...” button. Then you can select that site. You can also pick “Juno” (the current Eclipse release name at the time of this writing) to install additional projects not included with your installer bundle.
Install...button. For example, try adding the two UML2 projects (under “modeling” in the Galileo release site), and click “Next”. This shows a summary of all the items that will be installed based on your choices. Click “Next” show the license screen; be sure to select the “I agree ...” button, then click on the “Finish” button to start the install.
Feel free to explore other available plug-ins. Even more plug-ins can be found at marketplace.eclipse.org. (Warning: You should learn the basic Eclipse platform first, because adding plug-ins complicates the user interface.)
Hello. You should see a new file “
Hello.java” in the Package Explorer window. Right-click on it and chose open, and create another hello world (or other simple) application. Your application should not be identical with the tutorial; make yours say something such as “Hello from the world of Eclipse!”. Don't forget to add appropriate comments (and to delete pointless comments that Eclipse may insert automatically for you).
Note the Eclipse won't automatically put your classes in packages. That is fine for this project, but generally it is best to use packages. You can name your package after the project name.
Give your project a useful name (e.g., “
and pick a name for the class that will be generated
Note the NetBeans automatically puts your classes in a
package named after the project.
That is fine, but for this simple project, you could put your class in the
default, nameless package.
Leave “Set as Main Project” selected, and click
A copy of your Java source code from the “Hello World” programs you created in parts I and II, and the answers to the questions asked in part III. You can send as email to (preferred). If email is a problem for some reason, you may turn in a hard-copy. In this case the pages should be readable, dated, and stapled together. Your name should appear on the first page.