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

Re: cannot find org.postgres.Driver

From: Ulrich Meis <kenobi(at)halifax(dot)rwth-aachen(dot)de>
To: Felipe <pipojmr(at)yahoo(dot)com(dot)mx>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: cannot find org.postgres.Driver
Date: 2004-05-28 02:01:35
Message-ID: 40B69D7F.9050406@halifax.rwth-aachen.de (view raw or flat)
Thread:
Lists: pgsql-jdbc
Felipe wrote:

> I'm using the file pg73jdbc3.jar which is included in my classpath
>  


And here's the problem. Your browser uses the Java Plugin and that has a 
different classpath. You can set it on your machine, but you can't set 
it on everyone's machine who's going to visit your page.
You need to include the jar file in your applet tag. I am not sure if it 
is possible with a plain <applet> tag, but you can try to add 
codebase="pg73jdbc3.jar".
That might fail, but with JDK 1.2 applets you shouldn't use that tag 
anyway. Unfortunately it depends on the browser if you need to use an 
<object> or an <embed> tag, but the whole matter is best discussed here: 
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/contents.html 
where you can find a solution for both major browser families out there.

Greetings,

Uli



In response to

pgsql-jdbc by date

Next:From: Warren LittleDate: 2004-05-28 15:30:07
Subject: application handing on send
Previous:From: Dave CramerDate: 2004-05-27 16:44:14
Subject: Re: getGeneratedKeys method

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