Bug#429846: Can't find org.postgresql.Driver after installation
Michael Koch
konqueror at gmx.de
Wed Jun 20 19:50:31 UTC 2007
On Wed, Jun 20, 2007 at 05:44:23PM +0200, Gustaf Räntilä wrote:
> Package: libpg-java
> Version: 8.2-504-1
>
> After installation, you would assume that the driver is "installed", so
> that you can use it as described in all manuals:
> Class.forName("org.postgresql.Driver");
> but this throws an exception:
> java.lang.ClassNotFoundException: org.postgresql.Driver
>
> I'm using postgres 8.1 and Sun Java SE 6.0, and, obviously, sid.
You need to put /usr/share/java/postgresql.jar onto your classpath. This
jar contains the class org.postgresql.Driver.
Please report back if this helps you.
Cheers,
Michael
--
.''`. | Michael Koch <konqueror at gmx.de>
: :' : | Free Java Developer <http://www.classpath.org>
`. `' |
`- | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B
More information about the pkg-java-maintainers
mailing list