Oracle interMedia Java Classes User's Guide and Reference
Release 9.0.1

Part Number A88785-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

A
Running Java Classes Examples

Four sample files (programs written in Java) are provided in the installation of interMedia Java Classes. These files provide examples of how to build Java applications with interMedia. They demonstrate loading data from various sources into database objects, downloading data from database objects to the file system, and extracting and displaying metadata from the media content.

The names of the Java sample files are as follows:

In order to run the Java sample files included with interMedia Java Classes, you must perform the following operations:

  1. Install Oracle9i with Oracle interMedia.

    You must have the Oracle9i database server that includes Oracle interMedia installed on a server machine.

  2. Ensure that the Java environment is correct and set up to compile and run Java programs.

  3. Check the values of local variables.

    All users must make sure that classes111.zip or classes12.zip, ordim.zip, the JDK classes, and the SQLJ runtime.zip files are included in the CLASSPATH variable on the local machine.

    Solaris users must make sure the directory that contains libocijdbc9.so is included in the LD_LIBRARY_PATH variable.

    Windows NT users must make sure that the directory that contains ocijdbc9.dll is included in the PATH variable.

  4. Compile the Java file on your local machine.

    Using version 1.2 or later of the JDK, compile the sample programs using the appropriate command:

    • For audio: javac AudioExample.java

    • For document: javac DocumentExample.java

    • For image: javac ImageExample.java

    • For video: javac VideoExample.java

  5. Connect to your database and run the SQL script that corresponds to your Java file.

    In order for the sample programs to run, your database must include tables that contain a column of the appropriate interMedia object type. The interMedia Java Classes installation includes four SQL files that contain commands to create a new user and a table, and to add some sample data to the table.

    The names of the SQL scripts are as follows:

  6. Run the compiled Java program.

    Run the sample program using the appropriate command:

    • For audio: java AudioExample

    • For document: java DocumentExample

    • For image: java ImageExample

    • For video: java VideoExample

For more information on the sample files, see the appropriate readme file.


Go to previous page Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback