Java and OWS21 troubles
Date: 1997/05/17
Message-ID: <337E66D6.90C41EFA_at_ti.com>#1/1
I am using Oracle Web Server 2.1 on my NT box to try and connect to a database on a HP-UNIX system. I have installed everything properly. When I try to run my class TestConnect, I get the following error:
java.lang.NoClassDefFoundError: oracle/rdbms/Session
OWS21 came with some Oracle.zip classes that I included in my classpath, but I am still getting errors. Any insights? Please email as well as post to qball_at_ti.com
thanks.
// I assumed adding Oracle.zip to my class path would allow it to work
// the code compiled OK, so It must have seen the classes?
import oracle.html.*; import oracle.rdbms.*; import oracle.plsql.*;
import java.awt.*;
public class TestConnect {
public static void main (String args[]) {
// ADD: defines Oracle session properties like ORACLE_HOME
Session.setProperty("ORACLE_HOME", "/orwin"); Session.setProperty("TNS_ADMIN", "/orwin/network/admin");
// ADD: creates a database session and logon
Session session;
try {
session = new Session("qball", "qball", "MODEL");
} catch (ServerException e) {
System.out.println("Logon fails: " + e.getSqlerrm());
return;
}
}
}
Received on Sat May 17 1997 - 00:00:00 CEST