jdbc with oracle "run time error"!!!
I'm trying to connect to Oracle using jdbc.
this is the simple code for my program, I'm getting run time error
"memeory couldn't be read".
import java.sql.*;
class MyCon{
public static final String JDBC_URL = new String("jdbc:oracle:oci8:@BhDb1onlocalhost");
public static final String USERNAME = new String("scott");
public static final String PASSWORD = new String("tiger");
public static void main(String args[])
{
try {
MyCon myob = new MyCon();
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection con = DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
Statement stm = con.createStatement();
ResultSet rs = stm.executeQuery("Select * from Providers");
ResultSetMetaData rsmd = rs.getMetaData();
while(rs.next()) {
for(int count=1;count<=rsmd.getColumnCount();count++) {
System.out.println(rs.getString(count));
}
}
} catch(Exception e) {
System.out.println("caught:"+e);
}
}
}
I'm using windowsNT 4.0
jdk1.2.2
oracle 8.1.5
classess111.zip is in my classpath
thanx in advance.

