Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> JDBC thin Driver Connect fails in Netscape
I have written a JAVA Applet and I want to connect to a Oracle database,
which is not on my computer.
If I start my applet in an appletviewer, everything works ok.
But if I start my applet in Netscape Navigator 4.05 I receive the
following exception in the java console
netscape.security.AppletSecurityException: security.Couldn't connect to 'pegas5' with origin from 'local-classpath-classes'.
So it looks like, that I have to configure my Netscape Navigator Security options, that it doesn't throw this exception. But where to do ?
For more detail, this is my JAVA-code
------------------------------------------------------------------------
------------------------------------------------------------------------
szLogIn=p1.getUserName(); szPassword=p1.getPassword(); Class.forName("oracle.jdbc.driver.OracleDriver"); DriverManager.registerDriver(new
co =
DriverManager.getConnection("jdbc:oracle:thin:@pegas5:1526:ORA73",szLogI
n,szPassword);
}
catch(SQLException ex)
{
labelInfo.setText("Connected !");
}
catch(java.lang.ClassNotFoundException ex) {
labelInfo.setText("Oracle JDBC-ODBC Driver not found !"); }
Thanx
Andi
Received on Fri Jun 19 1998 - 07:57:14 CDT
![]() |
![]() |