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.
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 C:\Program Files
.
Open that folder and right-click on the file eclipseeclipse.exe.
Choose
.
Next, right-click on the Copy
button and
click on Start
.
Next open Open
.
Finally right-click in this window and chose
Programs
.
(You can add additional short-cuts to your desktop or the
quick launch bar, if desired.)
Paste Shortcut
Eclipse is now installed and ready to use.
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 the Hello World application.)
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.
jar files placed into the
Eclipse install directory.
There are hundreds available to extend Eclipse with additional
functionality, such as
XML
editors, Junit test case editors, visual editors,
UML
GUI drawing
tools (that generate Java code for you), Java EE tools,
and visual AWT, swing, or SWT
visual editors.
A collection of these projects useful for Java and Java EE development has been bundled together under the name Ganymede, which is what you have installed. To install other Eclipse plug-ins:
. You may have to add other sites for third party plug-ins.Software Updates→Available Software
Install... button.
Note! the visual editor plug-in for Eclipse isn't
available yet!
Feel free to explore other available plug-ins. Even more plug-ins can be found at www.EclipsePluginCentral.com. (Warning: You should learn the basic Eclipse platform first, because adding plug-ins complicates the user interface.)
, and click on theSoftware Updates→Installed Software
Update... button.
There is also a setting under the preferences to cause Eclipse to
automatically search for updates.
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).
Javabundle or the
Allbundle. Note this includes a Java EE server glassfish, version 2. It also includes a pre-release of version 3; you need not install that.
Help→Check for Updateto do this.
NetBeans IDE Java Quick Start Tutorialand the
Basic Java Programmingguides.
Hello Worldtype of Java application using NetBeans. Your application should say something such as
Hello from the world of NetBeans!. Be sure to add appropriate comments (and delete any empty or pointless comments that NetBeans may automatically add).
New Project.... Next select
Java Applicationfrom the
Javacategory, and click
Next.
Give your project a useful name (e.g.,
),
and pick a name for the class that will be generated
(e.g., hello
).
Note the NetBeans automatically puts your classes in a
package named after the project.
That is fine, or you could name the main class simply
hello.Hello
to put it in the default, nameless
package.
Leave HelloSet as Main Project
selected, and click Finish
.
A copy of your Java source code from the Hello World
programs
you created in steps I.8 and II.6.
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.
Please see your syllabus for more information about projects, about submitting projects.