Re: Can't find database driver

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'impala'" <bhnnc(at)yahoo(dot)co(dot)uk>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Can't find database driver
Date: 2002-03-07 19:48:14
Message-ID: 00b801c1c611$05977440$c201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Nic,

As far as I know the browser/applet doesn't have access to classes on
your computer. So the driver will have to be on the server.

Dave

-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of impala
Sent: Wednesday, March 06, 2002 4:58 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] Can't find database driver

Hi
I got the following error when try to run a applet
through appletviewer: "Cant't find Database driver
class: java.lang.ClassNotFound....":

I did add the driver in the .java code
Class.forName("org.postgresql.Driver"); and
jdbc:postgresql:databaseName;

The applet is not on a webserver.Its local on my
machine like /root/home/user/applet.html and /root/home/user/applet.java

How do I know if the postgresql driver is working?
Postmaster was running
and I could access the database from the shell(linux)
e.g select * from tableName. Does that indicate if my
driver is working?

I installed postgres at the same time when I installed
redhat with the redhat7.2 CD package. Do I need to add
extra stuff manually like in the .bashrc classpath? Do
I need to compile the posgresql driver? Do I need to
put a postgress.jar in the <applet> tag?

Thanks
Nic

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeremy Ferry 2002-03-07 21:17:48 idle in transaction - should I care?
Previous Message Kovács Péter 2002-03-07 16:59:40 Re: Questions?