X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 866A73A19F6 for ; Fri, 21 Jan 2005 13:57:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13414-05 for ; Fri, 21 Jan 2005 13:56:55 +0000 (GMT) Received: from rs26s12.datacenter.cha.cantv.net (rs26s12.datacenter.cha.cantv.net [200.44.33.31]) by svr1.postgresql.org (Postfix) with ESMTP id 0F2E23A48A3 for ; Fri, 21 Jan 2005 13:56:58 +0000 (GMT) Received: from tgusta2 (dC9F37969.dslam-14-24-3-06-01-02.fsl.dsl.cantv.net [201.243.121.105]) by rs26s12.datacenter.cha.cantv.net (8.13.0/8.13.0/3.0) with SMTP id j0LDutSP004794 for ; Fri, 21 Jan 2005 09:56:56 -0400 X-Matched-Lists: [] Message-ID: <007f01c4ffc1$16642790$1400a8c0@tgusta2> Reply-To: "Ing. Jhon Carrillo" From: "Ing. Jhon Carrillo" To: Subject: JDBC Error Date: Fri, 21 Jan 2005 09:57:01 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007C_01C4FF9F.8DBAD090" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: ClamAV 0.80/664/Thu Jan 13 11:13:05 2005 clamav-milter version 0.80j on rs26s12.datacenter.cha.cantv.netClamAV 0.80/664/Thu Jan 13 11:13:05 2005 clamav-milter version 0.80j on rs26s12.datacenter.cha.cantv.netClamAV 0.80/664/Thu Jan 13 11 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.427 tagged_above=0 required=5 tests=AWL, DEAR_FRIEND, HTML_MESSAGE X-Spam-Level: ** X-Archive-Number: 200501/203 X-Sequence-Number: 12083 This is a multi-part message in MIME format. ------=_NextPart_000_007C_01C4FF9F.8DBAD090 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3D"org.postgresql.Driver"; Class.forName(driver); System.out.println("Driver cargado"); =20 String url=3D"jdbc:tbase://192.168.0.20:5432"; =20 Connection = conn=3DDriverManager.getConnection(url,"postgres","internal"); System.out.println("conectado"); =20 //Class.forName("org.postgresql.Driver"); =20 }catch(Exception e) { e.printStackTrace(); } } =20 } please help me, thank ------=_NextPart_000_007C_01C4FF9F.8DBAD090 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear friend,
 
I want  to create a = conection  to=20 postgreSQL database with  "forte for java 4" and  this = returns an=20 error message:
 
************************************************************
Driver = cargado
java.sql.SQLException: No=20 suitable driver
        = at=20 java.sql.DriverManager.getConnection(DriverManager.java:532)
 &nb= sp;     =20 at=20 java.sql.DriverManager.getConnection(DriverManager.java:171)
 &nb= sp;     =20 at Prueba.main(Prueba.java:26)
 
**************************************************************
 
 
 this is the = code:
 
****************************************************************= *********************
import java.sql.*;
 
public class = Prueba
{
   public=20 static void main(String ar[])
  =20 {
       =20 try
       =20 {
            = String=20 driver=3D"org.postgresql.Driver";
   &= nbsp;       =20 Class.forName(driver);
        = ;   =20 System.out.println("Driver=20 cargado");
          = ; =20
            = String=20 url=3D"jdbc:tbase://192.168.0.20:5432";
     =       =20
           =20 Connection=20 conn=3DDriverManager.getConnection(url,"postgres","internal");
 &= nbsp;         =20 System.out.println("conectado");
      &= nbsp;    =20
           =20 //Class.forName("org.postgresql.Driver");
    &nbs= p;      =20
        }catch(Exception=20 e)
       =20 {
           =20 e.printStackTrace();
       =20 }
   }
   
}
 
please help me,
 
thank

------=_NextPart_000_007C_01C4FF9F.8DBAD090--