Search Postgresql Archives

Java Postgres drivers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux