Re: jdbc driver not recognized - Mailing list pgsql-novice

From wyrd
Subject Re: jdbc driver not recognized
Date
Msg-id 396C0324.C8BED2C@triskelion-nova.com
Whole thread Raw
In response to jdbc driver not recognized  (Stuart Urban <sturban@cs.uiowa.edu>)
Responses Re: jdbc driver not recognized
List pgsql-novice
Hi Stuart,


> I have installed postgresql-7.0.2 on my IRIX 6.5.4 system and everything
> works great, except for the JDBC driver.  I have made the driver and have
> tried to add the .jar file to my classpath.  It looked as though it was
> successful, but whenever I try to access the driver using the
> Class.forName(org.postgresql.Driver) method, I get a
> ClassNotFoundException.  Has anyone used postgres with Java that can give
> me any hints?
>

I've used the jdbc driver in a servlet rather effectively.

You might try doing something like:

    System.setProperty("jdbc.drivers","postgresql.Driver");
    Class.forName("postgresql.Driver");

This works for me with Postgresql 6.5.3, if the package name got
changed to org.postgresql you should probably try:

    System.setProperty("jdbc.drivers","org.postgresql.Driver");
    Class.forName("org.postgresql.Driver");


                        ~Rob

--
wYRd.:|:.wyrd@triskelion-nova.com.:|:.prohibitions void where offered
                      de recta non tolerandum sunt

pgsql-novice by date:

Previous
From: Stuart Urban
Date:
Subject: jdbc driver not recognized
Next
From: Antony Stace
Date:
Subject: how do I process data with a perl/cgi script & deliver result back to user via php