Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 6B40C9FB6A0 for ; Thu, 31 May 2007 20:37:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 27035-10 for ; Thu, 31 May 2007 20:37:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by postgresql.org (Postfix) with ESMTP id 03A639FB269 for ; Thu, 31 May 2007 20:37:12 -0300 (ADT) Received: from [127.0.0.1] ([72.66.94.73]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JIX00IZ1IXSE1FA@vms046.mailsrvcs.net> for pgsql-jdbc@postgresql.org; Thu, 31 May 2007 18:37:04 -0500 (CDT) Date: Thu, 31 May 2007 19:37:04 -0400 From: Guy Rouillier Subject: Re: jdbc connection In-reply-to: <32248102.110641180603003885.JavaMail.www@wwinf6302> To: pgsql-jdbc@postgresql.org Message-id: <465F5C20.7020504@burntmail.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit X-Antivirus: avast! (VPS 000746-0, 05/30/2007), Outbound message X-Antivirus-Status: Clean References: <32248102.110641180603003885.JavaMail.www@wwinf6302> User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/72 X-Sequence-Number: 17062 N. Khodabakhsh wrote: > Hello, > > I have downloaded the postgresql 8.2 and wanted to make a connection > with it. i get error like unknown source. > i send u herewith the source code (see attach). can you help me to fixe it? You're question is rather generic, and you didn't provide a useful error message. So helping is rather difficult. What exact error are you receiving? Your code looks okay. Since you are specifying "localhost", is it safe to assume you are running this code on the same box running PostgreSQL? Have you verified using psql that you can connect to the target database using the userid and password you have in this code? -- Guy Rouillier