+ All Categories
Home > Documents > Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship...

Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship...

Date post: 28-Dec-2015
Category:
Upload: allison-caren-martin
View: 216 times
Download: 0 times
Share this document with a friend
Popular Tags:
77
Chapter 1a © copyright Janson Industries 2014 1 RAD Explain Eclipse, RAD, and their relationship Basic RAD concepts How to install RAD How to import and run a Java class using RAD This presentation is stored in 4thed.Ch01a.ppt
Transcript
Page 1: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 1

RAD

▮ Explain Eclipse, RAD, and their relationship

▮ Basic RAD concepts

▮ How to install RAD

▮ How to import and run a Java class using RAD

This presentation is stored in 4thed.Ch01a.ppt

Page 2: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 2

RAD

▮ Eclipse: an open source integrated development environment (IDE)

▮ Rational Application Developer based on Eclipse

▮ Lots of files: will take up 2.5 gig of space or more, need 6 gig to install

▮ Get RAD from Black Board Course Content area

Page 3: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 3

Download and save all 11 files:CZL0EML, RAD_WS_8.0_ 1 through 5, RAD_WS_8.0_ Master, RAD_WS_8.0_TE_8.0_ 1 through 3, RAD_v80_Activation Kit

To a folder (I suggest you call it RAD8zipfiles)

Depending on your home Internet connection this could take a

looooooooooong time..

Page 4: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 4

After downloading you should have these files

Unzip/Extract each file, one at a time to a single folder (I suggest creating a folder called RAD8 to hold the unzipped

files and folders)

Page 5: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 5

After unzipping, RAD8 should have 3 folders:

RAD, RAD_SETUP, WAS80 And 2 files: RAD80lic.jar and a text file

Page 6: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 6

The RAD folder should have these folders

RAD

Page 7: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 7

The WAS80 folder should have these

If any of the folders/files are missing, verify that you downloaded all 11 zip

files, their sizes are the same as shown in the slide, you unzipped all 11 to the

same folder

Page 8: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 8

Go into RAD_SETUP (your files and folders should look like this) and right click launchpad.exe and select Run as

administrator

Page 9: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 9

At the pop up window, select a language and click Install IBM RAD for WebSphere

Page 10: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 10

Have to install the Installation Manager first

Make sure the above are selected, click Next

Page 11: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 11

Click the I accept license agreement checkbox then Next

Page 12: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 12

Specify the install location or accept default Click Next

Page 13: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 13

At the Install Packages, screen click Install

Page 14: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 14

Success, click Restart Installation Manager button

Page 15: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 15

At Installation Manager click install

Page 16: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 16

Click the checkboxes for Application Server 8 and RAD for WebSphere 8 then

Next

Page 17: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 17

Turn off Windows 7 firewall

▮ Turn off any anti-virus s/w

▮ Turn off Windows 7 firewall, first by opening Windows Firewall:▮ Clicking the Start button

▮ Clicking Control Panel

▮ In the search box, type firewall

▮ Click Windows Firewall

Page 18: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 18

Turn off Windows 7 firewall

▮ Click Turn Windows Firewall on or off

▮ If you're prompted for an administrator pwd or confirmation, type the password or provide confirmation

▮ Click “Turn off Windows Firewall (not recommended)” under each network location that you want to stop trying to protect, and then click OK

Page 19: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 19

Go back to the Install Packages window and click next

Page 20: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 20

Click “I accept the terms in the license agreement” radio button, then Next

Page 21: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 21

Specify where to install or accept default (RAD cannot be installed to your thumb

drive) then click next

Page 22: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 22

Specify where to install and click next

Page 23: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 23

Click next

Page 24: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 24

Click next

Page 25: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 25

Click next

Page 26: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 26

Click next

Page 27: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 27

Installing RAD

▮ If you get an option for 32 or 64 bit choose 32 bit

▮ Why?

▮ Labs are all 32 bit

▮ 32 bit apps can run on 64 bit RAD installations but not the reverse▮ If you bring up the app on a 64 bit

installation you will have trouble trying to rerun on a 32 bit

Page 28: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 28

At Summary window, click InstallThis will take a while

Page 29: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 29

Click Finish

Page 30: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 30

Close the installation Manager Window

RAD will be started (If RAD does not start click here). Specify a workspace (a

folder) to hold all your work.RAD will create the folder if it doesn’t

exist If you will be working at different

computers, specify the location on a portable flash drive

Page 31: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 31

Uncheck “Enable administrative security on the profile”, then Finish

RAD needs to create a profile for the server

Page 32: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 32

RAD is initially installed with a Trial license, start the process to change that

by clicking Manage Licenses

Page 33: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 33

Click Apply License

Page 34: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 34

Click RAD 8.0.0 in the tree, the Import product Activation Kit radio button, then

Next

Page 35: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 35

Click Browse, then navigate to the folder with the unizipped RAD files (i.e. RAD8)

Click on RAD80lic.jar then Open.

Page 36: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 36

The file will appear in the Repository text field

Click Next

Page 37: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 37

Click the I accept the terms radio button, then Finish

Page 38: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 38

The license type will be changed to Permanent

Click Finish

Page 39: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 39

Click Done to close the Manage Licenses window

Page 40: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 40

If RAD is open close RAD

To use the Visual Editor we will have to change the RAD configuration to include

it

Page 41: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 41

Start the Installation Manager by clicking:

StartAll ProgramsIBM Installation Manager IBM Installation Manager

Reconfigure RAD

Page 42: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 42

Click Modify

Page 43: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 43

In the Modify Packages window, select IBM Software Delivery Platform, and

click Next.If you get a prompt for a userid/pw just

cancel out of those windows

Page 44: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 44

At the Modify Packages window, click Next

Page 45: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 45

At the Modify Packages window, Click Struts and SDO development tools

Page 46: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 46

Scroll down the Features list, select Java client application editor (VE) and click

Next.

Page 47: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 47

At the Summary page click Modify

Page 48: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 48

Click Finish

Page 49: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 49

Close the Installation Manager Window

Page 50: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 50

Starting RAD in M2102

▮ Because of all the security controls in the lab, RAD does not run well with student ids

▮ So when in the lab, sign on with the following:▮ Userid: .\ibm▮ Password: cop2551

Page 51: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 51

Start RAD by clicking: Start

All Programs

IBM Software Delivery Platform

IBM Rational Application Developer

Rational Application Developer

Page 52: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 52

Specify the workspace folder, Click OK

The Workspace is a folder where all your work will be stored

I suggest the folder be on your thumb drive

Page 53: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 53

Possible RAD Install Problems

▮ You don’t have administrator authority on the computer

▮ Things like the registry will be updated and this requires administrator authority

▮ There is firewall/anti-virus s/w preventing the install

▮ Disable the s/w and try to install again

Page 54: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 54

Possible Problems

▮ Zip file(s) download was interrupted

▮ Compare sizes of files in slide 3 to the sizes of your zip files

▮ All files weren’t unzipped into the same directory/folder

▮ The installation s/w will search for the folders in the same folder that the RAD_SETUP folder is in

Page 55: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 55

Possible Problems Starting RAD

▮ If you get this, try changing eclipse.ini contents to:(-XX:MaxPermSize=256M-vmargs-Xms40m-Xmx768m)

▮ Here’s a link with more info:

http://troyworks.com/blog/2008/06/08/eclipse-jvm-terminated-exit-code-1

Page 56: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 56

This means you installed RAD and can delete the folder and zip files

Close the Welcome window by clicking the

white

Page 57: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 57

Initial display shows the JEE perspective

Page 58: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 58

Perspectives

▮ Many development environments based on the type of application you are creating▮ Java perspective – client ▮ Web perspective - server▮ JEE perspective - enterprise

▮ Each has a unique set a panes, views and functions/tools

▮ Indicated at top right of window

Page 59: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 59

Start creating a project to hold your Java classes

Click File, New, Project

Page 60: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 60Select Java project and click Next

Creating a Project

Page 61: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a 61

Give the project name: e.g. JavaCourseClick Finish

Page 62: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a 62

Click Yes button to switch the Perspective

Page 63: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 63

This will bring up the Java “Perspective”

Notice that JEE is still active just not current

Page 64: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 64

Java Perspective made up of 4 panes:Package Explorer pane (far left)

Work Space (middle)Outline (far right)

Task (bottom)

Each pane can display many viewsViews indicated by tabs at top of pane

Page 65: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 65

To bring source code into RAD workspace:In the Package Explorer, click on the project to

hold the source code (e.g. JavaCourse) then File, Import

Page 66: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 66

Expand General and select File System Click Next

Page 67: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 67

Click Browse

Select your thumbdrive

Click OK

Page 68: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 68

Click Customer.java checkbox then Finish

Page 69: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 69

All source code files must go into the src folder

Expand the JavaClass project, and drag Customer.java into the src (source code)

folder

Page 70: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 70

Expand src, then (default package)Double click Customer.java to display source

codeNotice outline pane to far right

Page 71: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 71

Click the Run icon (green circle with white arrow head)

Page 72: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 72

Select Java Application and click OK to compile and run within RAD

Page 73: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 73

Console view will appear in Task pane with results

If console doesn’t appear click Window, Show View, Console

Page 74: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 74

RAD underlines errors with red squiggly

On left, white X in red circle indicates an error

Light bulb icon indicates RAD has suggestions on how to fix error, click

light bulb icon and solutions menu shown

Page 75: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 75

Selecting a solution (clicking on it) may take away the error…

Page 76: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 76

…. but produce the wrong result

Finding and Fixing Errors

Page 77: Chapter 1a© copyright Janson Industries 20141 RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.

Chapter 1a © copyright Janson Industries 2014 77

Class Assg

▮ Install/start RAD

▮ Import Customer.java

▮ Run Customer


Recommended