pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Doug Thistlethwaite <doug@dupreeinc.com>
To: pgsql-interfaces@postgresql.org
Subject: JDBC connection problem while trying example.basic
Date: Mon, 12 Jul 1999 11:02:15 -0700
Message-ID: <378A2DA7.FCC009E1@dupreeinc.com> (raw)

Hello,

I am very new to using postgresql.  I have a linux system at home
(Debian "slink" 2.0.36) which I have installed postgresql.  The
postgresql on the linux system seems to be running fine and I can use
psql to test sql statements.  I edited the init file and changed the
postmaster to accept tcp/ip connections.

My problem is when I try to talk to the database from a win95 system
using jdk1.2 and the sample program incloded with the JDBC driver.  When
I run the program example.basic I get the following:


Connecting to Database URL = jdbc.postgresql://dragon:5432/doug
Exception caught.
java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Compiled Code)
        at java.sql.DriverManager.getConnection(DriverManager.java:137)
        at example.basic.<init>(basic.java:34)
        at example.basic.main(basic.java:168)


Does this mean there is a problem with the driver?  The postgresql.jar
file is in the classpath.  The linux system I am using is called
dragon and it should be using the default port of 5432.

Any thoughts on what is going wrong?

Thank you,

Doug






view thread (7+ messages)  latest in thread

Message-ID: <378A2DA7.FCC009E1@dupreeinc.com>
Permalink:  ../378A2DA7.FCC009E1@dupreeinc.com/
Also on:    postgresql.org/message-id/378A2DA7.FCC009E1@dupreeinc.com

 · 

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: doug@dupreeinc.com
  Subject: Re: JDBC connection problem while trying example.basic
  In-Reply-To: <378A2DA7.FCC009E1@dupreeinc.com>

* 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