Oracle interMedia Audio, Image, and Video Java Classes User's Guide and Reference
Release 8.1.7

Part Number A85374-01

Library

Product

Contents

Index

Go to previous page Go to next page

A
Running Java Classes Examples

Three 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 Oracle8i with Oracle interMedia.

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

  2. Check the values of local variables.

    All users must make sure that classes111.zip, ordim817.zip, the JDK classes, and the SQLJ runtime.zip files are included in the CLASSPATH variable on the local machine, and the local directory containing the javac and java commands is included in the PATH variable on the local machine.

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

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

  3. Compile the Java file on your local machine.

    Using version 1.1.6 of the JDK, compile the sample programs using the appropriate command:

    • For audio: javac AudioExample.java

    • For image: javac ImageExample.java

    • For video: javac VideoExample.java

  4. 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 three SQL files that contain commands to create a new user and create a table, and add some sample data to the table.

    The names of the SQL scripts are as follows:

  5. Run the compiled Java program.

    Run the sample program using the appropriate command:

    • For audio: java AudioExample

    • 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 © 2000 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index