Kallol Nandi wrote:
> Hi,
>
> This is the code that I am using for native JDBC Driver to connect to
> PostgreSql in Linux.
> BTW the version of Postgres is 7.2.2 and the jar file is jdbc7.1-1.2.jar.
[...]
> String server ="10.100.102.31";
> String port ="5432";
> String database="notes";
> String url="jdbc:postgresql@"+server+":"+port+":"+database;
I don't know a lot about JDBC but I am using this URL with success:
jdbc:postgresql://localhost:5432/DATABASE_NAME_HERE
although I am using Sun 1.4 SDK.
Erik