Disclaimer |
|
The files in this set have no warranty of usefulness or accuracy. They have been tested to the best of the authors' abilities but are intended to merely to supplement the hands-on practices in the
Oracle9i JDeveloper
Handbook. The authors and any other entities that make these files available are not responsible for any effects that may result from the use of these files. The files below are offered as freeware in the public domain. There is no technical support available from the authors or the publisher for users of these files.
This code has been developed and tested with Oracle9i JDeveloper release 9.0.3,
production (build 1035). |
|
|
|
|
|
|
Unzip the file into a new directory (for example, C:\JDev9Practice). Open this file, INDEX.HTML, in your browser. |
|
|
[top] |
|
|
|
|
The practices in this book use database objects owned by a sample user, HR, in the Oracle database.
You can use either an Oracle8i database or an Oracle9i database. After installing the objects and data, you can reinstall by running
hr_drop.sql
to remove the objects and re-running the install procedures described in
this section.
|
|
|
Tip:
Some file links on this page will ask if you
want to save or open the file. If the file displays in the browser, but
you want to save it instead, select "Save Link As" (in
Netscape) or "Save Target As" (Internet Explorer) from the
right-click menu on the file link. |
|
|
|
You may install these sample database objects in an Oracle8i or Oracle9i
database using one of these methods:
OR
-
Use
a sample schema already installed in an Oracle9i database. The HR schema may already be installed in an
available Oracle9i database to which you have access.
OR
-
Run selected scripts in the JDeveloper tutorial directories. The
JDEV_HOME\jdev\ tutorials\ sample_schema_scripts directory contains the SQL*Plus scripts you need.
Run the scripts in this order:
-
hr8_cre.sql
-
hr8_popul.sql
-
hr8_idx.sql
-
hr8_code.sql
-
hr8_comnt.sql
OR
-
Run the following script after creating the HR user and granting
it CONNECT and RESOURCE privileges.
hr_install.sql
|
|
|
[top] |
|
|
|
|
Authors
Quovera - Peter's company web site.
Peter's
Personal Home Page - Sample Oracle development files.
Dulcian, Inc. - Paul's company web site.
Oracle Technology Network - Avrom's
company. The main
source of Oracle information about JDeveloper.
Other
International Oracle Users Group
Oracle Development Tools User Group
Netscape - Developer - JavaScript
Sun - Java - Reference for all Java technology
WWW Consortium - HTML, XML
|
|
|
[top] |
|
|
|
|
This section contains links to all files available in this set. The files are
organized by chapter and are divided into the following categories:
- Code Snippets
and other Samples - This contains small pieces of code contained in the chapter that you would otherwise have to key in.
It also contains sample files that are supplements to the material in the
book.
- Hands-On Practice Files
- starting and ending files for the practices. Use the steps in the "Practice Files Installation" section below to set up the files.
- Errata
- last minute corrections and clarifications that are not in the book. Read these before attempting the hands-on practices.
|
|
|
Which Printing do You Have?
|
|
|
The errata are different for the first and second printing. You can tell which printing you have by looking on the copyright/credits page (on the back of the second title page). It has the copyright line on it. Under the Oracle trademark paragraph is a series of numbers. If that line starts with "1234567890," you have a first printing. If it starts with "234567890," you have a second printing, etc. The errata files note which printing has the problem by indicating the printing number in parentheses, for example "(1 pr)" for first printing.
|
|
|
Using the Files From This Web Page
|
|
|
If the file link causes the file to be displayed when you do not want it to be displayed, right click the link, select Save Link As (in Netscape) or Save Target As (in Internet Explorer), and supply the directory and file name. Note:
So that these files may be displayed in your browser, TXT extensions have
been added to some file names. To use one of these files, you can copy the text
from the browser page and paste it into Notepad. Then save the file without the
TXT extension. Alternatively, you can navigate to the directory in which the
file resides (see the Location or Address field in the browser) and copy the
text from that file.
[top]
|
|
|
Using the Practice Files |
|
|
Note:
The instructions in the book are complete and you do not need to install any of these files to successfully complete the practices. The files in this archive are included in case you need to check your work or would like to see an example of the files that are created by the practice. |
|
|
|
The practices require a connection called "HR." Instructions for creating that connection may be found in
the Chapter 1 practice. Once you have set up the connection, use the following steps to install
any of the practice files (listed in the table in the "Sample
Files and Errata" section):
- Use the file with an "_start" suffix for the starting files needed
for the practice. Use the file with an "_end" suffix for the
completed files for the practice. Note the name of the workspace directory
that will be created (in the table in the "Sample
Files and Errata" section).
- Copy the Zip file into the JDEV_HOME\jdev\mywork directory.
- If a workspace file of the same name is open in JDeveloper, close it. Rename
the directory in the file system for that workspace.
- Unzip the file. In the unzip dialog, specify that you want to extract all
files into the current directory and want to "Use folder names."
This will create a directory
with the name shown in the table in the "Sample
Files and Errata" section.
- In JDeveloper, select File | Open and double click the directory
name. Do not select either of the two items that have the same
name and a .zip extension.
- Select the workspace file inside that directory (with a .jws extension).
- The workspace should open and there should be one or more project nodes
under it. If files opened in the Miscellaneous Files node, close the workspace
and all files in the Miscellaneous Files node and repeat steps 5 and 6.
- Click each project (.jpr file) node and click the Rebuild toolbar button.
- If there is a BC4J project in the workspace, select the .jpx file under that
project (for example, HRBC4J.jpx). Select "Edit..." from the
right-click menu on that file. In the Connection page of the Business Components Project Wizard, specify
your connection and click OK. This ensures that your connection will be used.
|
|
|
Note:
The starting and ending workspace directories for some practices contain a
number (in the middle or end of the file name) if the workspace directory is
used in another practice. The workspace filename usually matches the directory name
but may not exactly match the name used in the book. |
|
|
|
What to do if You Have Problems:
There are several troubleshooting techniques and strategies mentioned in the introduction of the book. |
|
|
|
Click Browse File System to view
directories and files |
|
|
[top] |
|
Chapter |
Code Snippets and Sample Files |
Hands-On Practice Files (workspace directory) |
Errata |
|
Bios & Introduction |
none |
none |
Intro_Corrections.txt |
|
1 |
none |
Ch01_end.zip
(LocDeptWS) |
Ch01_Corrections.txt |
|
2 |
none |
Ch02_start.zip
(ExploreIDEWS) |
Ch02_Corrections.txt |
|
3 |
Ch03_Snippets.txt |
Ch03_end.zip
(LocDept2WS) |
Ch03_Corrections.txt |
|
4 |
p. 143, 164, Box.java
p. 145, 163, Rectangle.java
p. 147, 165, TestBox.java
p. 150, ShowQuarter.java
p. 150, ShowQuarter2.java
p. 151, TestLoops.java
p. 151, TestException.java
p. 152, TestScope.java
p. 152, ShowSalary.java
p. 153, TestShowSalary.java
p. 155, PetNames.java
p. 158, StringAppend.java
p. 158, TestCast.java
|
Ch04_end.zip
(JavaTestWS) |
Ch04_Corrections.txt |
|
5 |
none |
none |
none |
|
6 |
none |
Ch06_start.zip
(SortWS)
Ch06_end.zip
(SortWS2) |
Ch06_Corrections.txt |
|
7 |
none |
Ch07_start.zip
(DeployWS)
Ch07_end.zip
(DeployWS2) (Note 1) |
Ch07_Corrections.txt |
|
8 |
none |
Ch08_1_end.zip (Note
4)
(UMLClassWS)
Ch08_2_start.zip (Note
5)
(LocDept2WS)
Ch08_2_end.zip
(LocDept2WS2) |
Ch08_Corrections.txt |
|
9 |
none |
Ch09_end.zip
(DefaultBusinessComponentsWS) |
Ch09_Corrections.txt |
|
10 |
none |
Ch10_end.zip
(HRWS10) |
none |
|
11 |
none |
Ch11_end.zip
(ModelingWS) |
none |
|
12 |
Ch12_Snippets.txt |
Ch12_1_end.zip
(HRWS12a)
Ch12_2_end.zip
(HRWS12b)
|
Ch12_Corrections.txt |
|
13 |
Ch13_Snippets.txt |
Ch13_1_end.zip
(HRWS13a)
Ch13_2_end.zip
(HRWS13b)
|
Ch13_Corrections.txt |
|
14 |
Ch14_Snippets.txt |
Ch14_1_end.zip
(HRWS14a)
Ch14_2_end.zip
(HRWS14b)
|
Ch14_Corrections.txt |
|
15 |
Ch15_Snippets.txt |
Ch15_end.zip
(HRWS15) |
Ch15_Corrections.txt |
|
16 |
Ch16_Snippets.txt |
none (Note 9) |
none |
|
17 |
none |
Ch17_start.zip (Note
3)
(LocDept3WS)
Ch17_end.zip
(LocDept3WS2) |
Ch17_Corrections.txt |
|
18 |
Ch18_Snippets.txt |
Ch18_1_end.zip - Tab UI (Note
6)
(DeptEmpWS)Ch18_2_end.zip - Customize
(CustomBeansWS) |
none |
|
19 |
Ch19_Snippets.txt
|
Ch19_start.zip
(MenuToolbarWS)
Ch19_end.zip
(MenuToolbarWS2) |
Ch19_Corrections.txt |
|
20 |
Ch20_Misc.zip
(LayoutMiscWS) (Note 2) |
Ch20_start.zip
(LayoutWS)
Ch20_end.zip
(LayoutWS2) |
none |
|
21 |
Ch21_Snippets.txt |
Ch21_end.zip
(SimpleJSPWS) |
none |
|
22 |
Ch22_Snippets.txt |
Ch22_end.zip
(LocationsWS) |
Ch22_Corrections.txt |
|
23 |
Ch23_Snippets.txt |
(for start file, use Ch22_end.zip)
Ch23_end.zip (Note
7)
(Locations2WS)
|
none |
|
24 |
Ch24_Snippets.txt |
Ch24_start.zip
(Locations3WS)
Ch24_end.zip (Note
8)
(Locations3WS2)
|
Ch24_Corrections.txt |
|
App A |
none |
none |
none |
|
App B |
none |
none |
none |
|
App C |
none |
none |
AppC_Corrections.txt |
|
App D |
p. 876, Bold test
(source
code)
p. 879, HTML page
(source
code)
p. 881, JavaScript page
(source
code)
(javascript file)
p. 881, JavaScript in the page
(source code)
p. 883, 885, Page using CSS
(source
code)
(cascading style sheet)
|
none |
none
|