Date Sample ApplicationThis document is organized into following sub-sections :
The application tries to illustrate the use of DATE data type access through JDBC calls. It populates a text field with current date. The user can enter the specific departure date manually or by using the Up Down button next to the text field. When the Select button is pressed the application retrieves all the rows from the FLIGHT_DEPARTURES table with the given departure date. Steps in the Sample
The section has step-by-step
instructions to run this application successfully. Run the sample using Oracle9i JDeveloper Run the sample using the JDK environment Install the sampleStep 1. Unjar DateSample.jar using Winzip, or using the following command: > jar xvf DateSample.jar You will find jar.exe in JDK_HOME\bin. Ensure JDK_HOME\bin is present in your system path. (JDK_HOME is the root directory of the JDKx.x installation ). This creates a folder DateSample with all the source files Step 2. Edit Connection.properties file located in the directory DateSample\src. Change the hostname, portnumber and database name to those of the database instance you want to connect to.
Database Setup The application requires the Travel Schema to be loaded into the database Run the sample using Oracle9i JDeveloperStep 1. Using JDeveloper File/Open option select the DateSample.jws from the DateSample directory. Step 2. Select Project/Make from JDeveloper main menu and select Make Project "DateSample.jpr" Step 3. Select Run/Run DateSample.jpr
from JDeveloper main menu to run the application. Run the sample using the JDK Environment Step 1. Install
Oracle JDBC Driver and include the zip/jar files in the CLASSPATH. Ensure
that DateSample\src directory is also added to the CLASSPATH
%javac *.java
DateSample is the top level directory.
Please enter your comments about this sample in the OTN Sample Code Discussion Forum. |