Re: Can't get JDBC to compile. Please help.

Поиск
Список
Период
Сортировка
От Guy Rouillier
Тема Re: Can't get JDBC to compile. Please help.
Дата
Msg-id 49E37BB7.4000201@burntmail.com
обсуждение исходный текст
Ответ на Can't get JDBC to compile. Please help.  (IronSheikh <kazisiddiqui@gmail.com>)
Список pgsql-jdbc
IronSheikh wrote:
> I'm a beginner. I installed PostGRESQL 8.3 with edb_pgjdbc.exe on Windows XP
> SP2.
>
> The following test code won't compile:

> NetBeans says:
> ***Exception:
> java.lang.ClassNotFoundException: org.postgresql.Driver

> I've tried adding "E:\Program Files\PostgreSQL\pgJDBC" to the CLASSPATH. Any
> suggestions?

The error message is pretty clear - it can't find the driver.  You don't
add the entire directory to your classpath - just the JAR file
containing the JDBC driver.

--
Guy Rouillier

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Helping application programmers catch threading bugs
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Helping application programmers catch threading bugs