X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 02AF9D1B241 for ; Wed, 26 May 2004 19:06:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84668-07 for ; Wed, 26 May 2004 19:06:12 -0300 (ADT) Received: from web50505.mail.yahoo.com (web50505.mail.yahoo.com [206.190.38.81]) by svr1.postgresql.org (Postfix) with SMTP id F301ED1B1D1 for ; Wed, 26 May 2004 19:06:08 -0300 (ADT) Message-ID: <20040526220611.32358.qmail@web50505.mail.yahoo.com> Received: from [201.128.126.176] by web50505.mail.yahoo.com via HTTP; Wed, 26 May 2004 17:06:11 CDT Date: Wed, 26 May 2004 17:06:11 -0500 (CDT) From: =?iso-8859-1?q?Felipe?= Subject: Re: cannot find org.postgres.Driver To: Ulrich Meis Cc: pgsql-jdbc@postgresql.org In-Reply-To: <40B4AB33.3040001@halifax.rwth-aachen.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1938052465-1085609171=:32289" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.7 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_MESSAGE, RCVD_IN_DSBL, RCVD_IN_NJABL X-Spam-Level: * X-Archive-Number: 200405/176 X-Sequence-Number: 10186 --0-1938052465-1085609171=:32289 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I'm using the file pg73jdbc3.jar which is included in my classpath well, my directory structure is: /home/Documents/dbConnection/classes/dbconnection here are all classes and html file is in /home/Documents/dbConnection/classes/ my source code is as follows package dbconnection; import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; import java.sql.*; public class Conectame1 extends JApplet { //Construct the applet public Conectame() { } //Initialize the applet public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception, ClassNotFoundException, SQLException{ conexion esta = new conexion(); jLabel1.setText("database name: "+esta.db.getDatabaseProductName()); this.setSize(new Dimension(400,300)); this.getContentPane().add(jLabel1, BorderLayout.CENTER); } } class conexion { Connection db; DatabaseMetaData dbmd; public conexion() throws ClassNotFoundException, SQLException { Class.forName("org.postgresql.Driver"); db = DriverManager.getConnection("jdbc:postgresql:arl","pipo","jamara16"); dbmd = db.getMetaData(); } public static void main(String[] args) throws SQLException, ClassNotFoundException { conexion conexion1 = new conexion(); } } my html code is as follows html> head> title> HTML Test Page /title> /head> body> dbconnection.Conectame will appear below in a Java enabled browser.
applet codebase = "." code = "dbconnection.Conectame.class" name = "TestApplet" width = "400" height = "300" hspace = "0" vspace = "0" align = "middle" > /applet> /body> /html> (I erased the '<' for my mail manager) thanks for your answer --------------------------------- Do You Yahoo!? Yahoo! Net: La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. --0-1938052465-1085609171=:32289 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I'm using the file pg73jdbc3.jar which is included in my classpath
 
well, my directory structure is:
 
/home/Documents/dbConnection/classes/dbconnection
here are all classes
 
and html file is in
/home/Documents/dbConnection/classes/
 
my source code is as follows
 
package dbconnection;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.sql.*;
 
public class Conectame1 extends JApplet {
 
//Construct the applet
public Conectame() {
}
 
//Initialize the applet
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
 
//Component initialization
private void jbInit() throws Exception, ClassNotFoundException, SQLException{
conexion esta = new conexion();
jLabel1.setText("database name: "+esta.db.getDatabaseProductName());
this.setSize(new Dimension(400,300));
this.getContentPane().add(jLabel1, BorderLayout.CENTER);
}
}
 
class conexion {
Connection db;
DatabaseMetaData dbmd;
public conexion() throws ClassNotFoundException, SQLException
{
Class.forName("org.postgresql.Driver");
db = DriverManager.getConnection("jdbc:postgresql:arl","pipo","jamara16");
dbmd = db.getMetaData();
}
public static void main(String[] args) throws SQLException, ClassNotFoundException
{
conexion conexion1 = new conexion();
}
}
 
my html code is as follows
html>
head>
title>
HTML Test Page
/title>
/head>
body>
dbconnection.Conectame will appear below in a Java enabled browser.<br>
applet
codebase = "."
code = "dbconnection.Conectame.class"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
/applet>
/body>
/html>
(I erased the '<' for my mail manager)
thanks for your answer
 



Do You Yahoo!?
Yahoo! Net: La mejor conexión a internet y 25MB extra a tu correo por $100 al mes.
--0-1938052465-1085609171=:32289--