The information provided here is for Java program developers and SAS users who want to write their own programs that access the computing and processing power of SAS software.
To install the iomjava.zip archive, use an unzip utility to unpack the iomjava.zip file. You can unpack to any directory.
To install the iomjava.tar archive, use the TAR command
to unpack the file. You can unpack to any directory.
Note: The Java Runtime Environment must include the Java 2 SDK, Standard Edition, v 1.2 (J2SDK) or later.
This archive contains the following JAR files:
If you are using WorkspaceFactory and LDAP to obtain an IWorkspace object, which is used in constructing a JDBC connection object, you need the following JAR files: jndi.jar, ldap.jar, and providerUtil.jar. These files are not provided in the IOM Java Cl ient Archive.
Note: These three JAR files are not necessary if you are using Java 2 SDK, Standard Edition, v 1.3 (J2SDK).
The above JAR files are part of the Java Naming and Directory Interface (JNDI) API from SUN Microsystems. The JNDI API is a standard extension to the Java platform. You can download the JAR files from the JavaSoft site at www.javasoft.com/products/jndi/.
If you are using WorkspaceFactory to obtain an IWorkspace object without using LDAP, you do not need to download the above JAR files.
If you are setting up the Java client on a local machine, you must set your CLASSPATH environment variable. Setting your CLASSPATH environment variable ensures that your applets have access to the classes provided in our packages.
The exact steps for setting CLASSPATH are specific to your machine type as well as how you plan to use your programs.
The documented Windows installation process installs the expanded archive in the directory C:\inttech\iomjava. If you installed the archive in this directory, set CLASSPATH by adding the following line to your autoexec.bat file:
set CLASSPATH=C:\inttech\iomjava;
If you do not unzip the JAR files, then set CLASSPATH as follows:
set CLASSPATH=C:\inttech\iomjava\iomdriver.jar; C:\inttech\iomjava\brgorb.jar;C:\inttech\iomjava\orb.jar;C:\inttech\ iomjava\iomprx.jar;C:\inttech\iomjava\netutil.jar
The documented UNIX installation process installs the expanded archive in the directory /usr/local/lib/inttech/iomjava. If you installed the archive in this director, set CLASSPATH by executing the following command from a command prompt:
export CLASSPATH=/usr/local/lib/inttech/iomjava;
If you do not unzip the JAR files, then set CLASSPATH as follows:
export CLASSPATH=/usr/local/lib/inttech /iomjava/iomdriver.jar:/usr/local/lib/inttech/iomjava/brgorb.jar: /usr/local/lib/inttech/iomjava/orb.jar:/usr/local/lib/inttech/iomjava/iomprx.jar: /usr/local/lib/inttech/iomjava/netutil.jar
Note: If you are using WorkspaceFactory and LDAP to get a JDBC Connection object, then you must include jndi.jar, ldap.jar, and providerUrl.jar in your classpath.