Java Postgres drivers.

Поиск
Список
Период
Сортировка
От Dave Coventry
Тема Java Postgres drivers.
Дата
Msg-id 4cba5adc0912280028y1a91d458p9e6cbe217b723c2f@mail.gmail.com
обсуждение исходный текст
Ответы Re: Java Postgres drivers.  (John R Pierce <pierce@hogranch.com>)
Re: Java Postgres drivers.  (Ivano Luberti <luberti@archicoop.it>)
Список pgsql-general
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?

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

Предыдущее
От: "donniehan"
Дата:
Сообщение: Re: Why grantor is owner in this case?
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Java Postgres drivers.