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 <[EMAIL PROTECTED]> : :' : | Free Java Developer <http://www.classpath.org> `. `' | `- | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B