JVA102
Technical Requirements
Operating System Options
- Windows 7
- Windows XP Service Pack 2
- Windows Vista
- Mac OS X
- Please note that Webucator offers limited support for configuring Mac OS X for this class.
Java Development Kit (JDK)
- Java SE Development Kit (JDK) 7 - Download
- NOTE: You do not need to download the bundles that include JavaFC, Java EE, or Netbeans. You only need to the JDK that include the JRE and command-line development tools. After installation, the files will be located on the C drive, usually at C:\Program Files\Java\jdk1.7.0_
Java SE 6.0 API Documentation
Java Runtime Environment (JRE)
- Java SE Runtime Environment (JRE) 6 Update 10 - Download
Java Editors / IDEs
Windows
Option 1: Crimson Editor
Note: Crimson Editor is probably the best option unless you have a specific reason for using the Eclipse Integrated Development Environment (IDE) listed below.
- Go to http://www.crimsoneditor.com.
- Choose the option for Download from the left-hand navigation menu.
- Choose the most recent release from one of the download mirrors.
- Execute the file you just downloaded by double-clicking on it.
- Read the License Agreement and click on the button labeled I Agree.
- When asked what components to install, you can leave the default settings.
- Install Location can be left as default.
- When the install finishes, click the button labeled Close.
Option 2: Eclipse Integrated Development Envrionment (IDE)
Note: Use of the Eclipse integrated development environment is optional for this class at the discretion of the instructor.
- Go to http://www.eclipse.org/downloads.
- Choose the option Eclipse IDE for Java Developers. This downloads a zip file.
- For basic Java classes, we use Eclipse IDE for Java Developers, which does not include Java EE capabilities such as Servlets and JSPs.
- For Java EE classes, download Eclipse IDE for Java EE Developers.
- Unzip/Extract the downloaded file to C:\. The installation is a simple unzip to C:\ (Eclipse does not "install" - you run it directly from eclipse.exe, which will be in C:\eclipse after the unzip).
Macintosh
Only Supported Option: Eclipse
- Download Eclipse ID for Java Developers from http://www.eclipse.org/downloads/index.php if you haven't already.
- Unarchive the Eclipse IDE file you downloaded by double-clicking on it. You can run Eclipse directly from the unarchived location. For consistency with other applications, you may want to place the unarchived folder within the Applications directory.
- Download the class files for your class if you haven't already.
- Go to your Documents directory within the Finder and make a folder named Webucator. Drag the class files .zip file into the Webucator folder and unarchive it by double-clicking the file. This will make an additional folder named ClassFiles.
- Make another new folder within the Webucator folder named Workspace.
- Open Eclipse by double-clicking on the application file from the location in which you saved it. Once Eclipse opens, you may find it useful to keep Eclipse in the Dock.
- The first thing you should be presented with is an option to choose your Workspace using the Workspace Launcher dialog. Click the button labeled Browse and navigate to and choose the folder for Documents/Webucator/ClassFiles/Workspace. Then click the button labeled OK in the Workspace Launcher dialog.
- Once Eclipse opens, you will see a Welcome screen. Within the main area of the Welcome screen, the click on the button for Workbench at the far-right of the screen.
- Once the Workbench opens, navigate to File > New and select Project. You can also choose File > New > Java Project. However this seems to take a bit longer. If you choose, File > New > Java Project, please skip the next step.
- When presented with the New Project dialog, swing down the arrow next to the entry for Java and select Java Project. Then, click the button labeled Next.
- These instructions will help you test your Java installation using Eclipse and our class files. If the operations that follow are successful, then you will be prepared for class and will complete steps just like those mentioned here to complete work during class.
- When presented with the Create a Java Project dialog, enter a Project Name of Payroll02.
- Select the option for Create project from existing source. This will enable the Directory field immediately below that option.
- Next to the Directory field, click the button labeled Browse and navigate to and Choose the folder for Documents/Webucator/ClassFiles/Solutions/Payroll02. Then click the button labeled Finish on the Create Java Project dialog. This should open a listing for Payroll01 within the Package Explorer panel of Eclipse on the left-hand side of the application.
- Expand Payroll02 by clicking on the arrow to the left of the listing. Then, also expand (default package) by clicking the arrow to the left of the listing.
- Double-click Employee.java to open it. Once that opens, double click Payroll.java as well. This will open these files within the editor. Please note that a warning may appear at the bottom of the screen. It is OK to ignore this warning.
- With Payroll.java selected in the editor. Go to the Run in the menubar at the top of your screen. Navigate to Run > Run As and select Java Application.
- If everything was successful, within the Console panel near the bottom of the screen, you will receive the following results:
Employee 0 dept 2 Doe John paid 0.0
Employee 0 dept 15 Jane Smith paid 0.0
Class Files
Download the class files.
Trademarks
Java® and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
|
|