Skip site navigation (1) Skip section navigation (2)

No suitable driver

From: "Mike Kenny - CPX Mngd Services" <Mike(dot)Kenny(at)Comparex(dot)co(dot)za>
To: "JDBC (E-mail)" <pgsql-jdbc(at)postgresql(dot)org>
Subject: No suitable driver
Date: 2003-10-23 09:54:35
Message-ID: A2AE62FF85AEAC4BA3DE695E3C237D110AD379@exmid04.africa.enterprise.root (view raw or flat)
Thread:
Lists: pgsql-jdbc
My code is quite simple 
 
try {
    Class.forName("org.postgres.Driver");
} catch(ClassNotFoundException nfe) {
    nfe.printStackTrace();
}
try {
    db = DriverManager.getConnection("jdbc:databasename", "id", "password");
} catch(SQLException se) {
    se.printStackTrace();
}
 
on execution I receive a SQLException stating that there is no suitable driver
 
This is my first time trying to connect to postgreSQL and I am stuck.
 
Any advice appreciated (career change is not an option :-)

Mike Kenny 
Principal Consultant
Comparex Africa (Pty) Ltd
Managed Services 
* e-mail: mike(dot)kenny(at)comparex(dot)co(dot)za
* Tel(W): +27 (0)11 266-5703
* Cell:     +27 (0)83 266-1437
NOTICE: This message and any attachments are confidential and intended solely for the addressee.  If you have received this message in error, please notify Dave Gilbert at Comparex Africa (Pty) Ltd immediately, telephone number +27 (0) 11 266 5204.  Any unauthorised use, alteration or dissemination is prohibited.  Comparex Africa (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from.

 

Responses

pgsql-jdbc by date

Next:From: nitin_mandolkarDate: 2003-10-23 14:29:20
Subject: Help Me
Previous:From: Francisco VillavicencioDate: 2003-10-22 14:37:14
Subject: Unable to run Applets with appletviewer

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group