Re: Java Postgres drivers.

Поиск
Список
Период
Сортировка
От Ivano Luberti
Тема Re: Java Postgres drivers.
Дата
Msg-id 4B3899AB.50508@archicoop.it
обсуждение исходный текст
Ответ на Java Postgres drivers.  (Dave Coventry <dgcoventry@gmail.com>)
Ответы Re: Java Postgres drivers.  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Sure the url looks bad.
Shoudl be something like:

http://jdbc.postgresql.org/dbname


Anyway you cen find more help about jdbc connectivity to postgres here:

http://jdbc.postgresql.org/

Dave Coventry ha scritto:
> I'm not sure this is the right place to enquire...
>
> I'm trying to connect to a postgres datanbase with Java.
>
> import java.sql.*;
>
>     public static void main(String[] args) {
>         // TODO code application logic here
>         try{
>             System.out.println("Starting...");
>             Class.forName("org.postgresql.Driver");
>             String url="jdbc:postgresql:inenergy";
>             System.out.println("Got here...");
>
>         catch(Exception e){
>             System.out.println("Error..."+e.getMessage());
>
>         }
> }
>
> Just don't get to the 'Got here...' statement.
>
> Can anyone see what I'm doing wrong?
>
>

--
==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==================================================


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

Предыдущее
От: fernando@lozano.eti.br
Дата:
Сообщение: Re: Java Postgres drivers.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why grantor is owner in this case?