pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Georg Ritter <Georg.Ritter@uibk.ac.at>
To: pgsql-interfaces@hub.org
Subject: Problems using, IE5 MS-VM and JDBC driver
Date: Mon, 14 Jun 1999 00:15:59 +0200
Message-ID: <37642D9F.B1C45196@uibk.ac.at> (raw)

Hello, 


I wrote a little Java applet which uses jdbc to connect to a 
pg installed on a linux box. 

It works with Nectscape 4.5/6 but when I try to start
the applet with IE5 ( JIT on and off ) I get the SQLException
"No suitable driver found", thrown by the first try block (see
program code below). 

I don't understand where the problem comes from. It seems to 
be correctly done if it works with Netscape? 
 
Any ideas around there?

The driver is situated in a subdir of the applet: ..../applet/postgres/
( single .class files, structure as in the postgres dist. )

I used jdk1.2 port for linux for compiling the driver.



The code I use to load the driver:
...
import java.sql.*;
import java.net.URL;
import java.net.MalformedURLException;
...
    private void initDBconnection()
    {
        String url = "jdbc:postgresql://a.b.c:5000/mydb?" +
                     "user=thename?password=thepasswd&auth=password";
        String usr = "thename"; 
        String pwd = "thepasswd";

        String query = "select kreis, name from locationdata where nummer<10";
        
        try 
	{  Class.forName( "postgresql.Driver" ); } 
        catch( Exception ex ) 
        {
	    d( "could not do theSatwebDBnect to SATWeb" + ex, 100 );
            Error( "DBError");        
	}
        try 
        {
            theSatwebDB = DriverManager.getConnection( url, usr, pwd );
        } 
        catch( SQLException ex ) 
        {
	    d("The connection to SATWeb failed:" +ex+"\n", 100);
        }
    }

 
Greetings, 

	Georg Ritter
 
---------------------------------------------------------------------
  student at department of physics
  University of Innsbruck, Austria            Georg.Ritter@uibk.ac.at




view thread (2+ messages)  latest in thread

Message-ID: <37642D9F.B1C45196@uibk.ac.at>
Permalink:  ../37642D9F.B1C45196@uibk.ac.at/
Also on:    postgresql.org/message-id/37642D9F.B1C45196@uibk.ac.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: Georg.Ritter@uibk.ac.at, pgsql-interfaces@hub.org
  Subject: Re: Problems using, IE5 MS-VM and JDBC driver
  In-Reply-To: <37642D9F.B1C45196@uibk.ac.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox