From: Ing. Jhon Carrillo <jdigital@cantv.net>
To: pgsql-jdbc@postgresql.org
Subject: JDBC Error
Date: Fri, 21 Jan 2005 09:57:01 -0400
Message-ID: <007f01c4ffc1$16642790$1400a8c0@tgusta2> (raw)
Dear friend,
I want to create a conection to postgreSQL database with "forte for java 4" and this returns an error message:
************************************************************
Driver cargado
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Prueba.main(Prueba.java:26)
**************************************************************
this is the code:
*************************************************************************************
import java.sql.*;
public class Prueba
{
public static void main(String ar[])
{
try
{
String driver="org.postgresql.Driver";
Class.forName(driver);
System.out.println("Driver cargado");
String url="jdbc:tbase://192.168.0.20:5432";
Connection conn=DriverManager.getConnection(url,"postgres","internal");
System.out.println("conectado");
//Class.forName("org.postgresql.Driver");
}catch(Exception e)
{
e.printStackTrace();
}
}
}
please help me,
thank
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: jdigital@cantv.net
Subject: Re: JDBC Error
In-Reply-To: <007f01c4ffc1$16642790$1400a8c0@tgusta2>
References: <007f01c4ffc1$16642790$1400a8c0@tgusta2>
* 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