Try this code:


Class.forName("postgresql.Driver");
conn_a=DriverManager.getConnection(baza,username_data,password_data);
stmt_a=conn_a.createStatement();

You should have postgresql.jar in your CLASSPATH...
You also should a postmaster with -i flag runninig.
Pawel


> Hi,
>
> I'm setting up on a postgresql system, and I'm a bit lost. Right now, I'n
> trying to figure out what driver to use. I assume (should I?) that the
> driver is already available, and I just need to now which one to call.
>
> Anybody have some sample code about this?
>
> Thanks
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to