Re: I just can't use the org.postgresql.Driver class... Please help!

Поиск
Список
Период
Сортировка
От Andres Olarte
Тема Re: I just can't use the org.postgresql.Driver class... Please help!
Дата
Msg-id 3fccaa690604101851t50f291cak23c2cee3cf3b59ba@mail.gmail.com
обсуждение исходный текст
Ответ на Re: I just can't use the org.postgresql.Driver class... Please help!  ("Guy Rouillier" <guyr@masergy.com>)
Список pgsql-jdbc
You must catch an Exception that *might* be thrown, in this case it's
ClassNotFoundException.

Change:

public static void main(String[] args)
  {

  Class.forName("org.postgresql.Driver");

  }

to

public static void main(String[] args)
  {
try {
  Class.forName("org.postgresql.Driver");
} catch (ClassNotFoundException e ){
}

  }


This way it'll compile.  This has nothing to do with JDBC, this is
basic Java stuff.

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

Предыдущее
От: "Michael Schmidt"
Дата:
Сообщение: Re: Re; pg_dump from Java
Следующее
От: "Wei Wei"
Дата:
Сообщение: Calendar vs. Timestamp