Lab 1. The Eclipse compiler can be obtained from www.eclipse.org.
- Go to www.eclipse.org
- CLick on DOWNLOADS
- TDS Internet Services (first link) seems to work the best)
- Select 3.1 Stream Stable Build
- CLICK on the ftp link and let it download
- Follow the instructions
- When you get to the point that the program does not open, download
Java J2SE 1.5 may be obtained from Java.sun.com (link under the
icon on the right)
Setting up to run a first program in ECLIPSE:
File -> New (Select PROJECT)
Next>
Project name (create in a workspace): ConsoleIOproject
Location (create project in a workspace)
Project layout (use project folder as root for
sources and class files)
Finish
File -> New (Select PACKAGE)
Browse and select the Source Folder you just created
Give your package a name: ConsoleIO
File -> New (Select CLASS)
Browse to proper source folder
Put in the package name
Name: (this will be the name of the class) ConsoleIO
Type in code
Run -> RunAs (Java Application)
At the bottom, select the CONSOLE tab
Now - copy this program to see how things work: