X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0A364D1B195 for ; Tue, 13 Jul 2004 16:14:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12454-08 for ; Tue, 13 Jul 2004 19:14:42 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 829A4D1B1A5 for ; Tue, 13 Jul 2004 16:14:39 -0300 (ADT) Received: (qmail 7345 invoked from network); 13 Jul 2004 19:14:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 13 Jul 2004 19:14:36 -0000 Subject: Re: JDBC connection issue From: Dave Cramer Reply-To: pg@fastcrypt.com To: Young Nam Cc: Kris Jurka , "pgsql-jdbc@postgresql.org" In-Reply-To: <581C48EBC132FF459E62A6809D0D72AE22C74B@mail.sharedmarketing.com> References: <581C48EBC132FF459E62A6809D0D72AE22C74B@mail.sharedmarketing.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1089746103.1506.377.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 13 Jul 2004 15:15:03 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/145 X-Sequence-Number: 10529 When you run a java program using -jar jarfile, java will ignore the CLASSPATH. This is why it can't find postgres. Dave On Tue, 2004-07-13 at 14:20, Young Nam wrote: > CLASSPATH is set to > /usr/local/pgsql/share/java/postgresql.jar:/home/youngnam/Development/java_apps/xlang/bin/Xlang.jar > > I am using ant to build the source files and create jar file. > In build.xml file, target that runs the program is, > > > where ${target} is bin/Xlang.jar > > > Thanks again, > > YJ > > -----Original Message----- > From: Kris Jurka [mailto:books@ejurka.com] > Sent: Tuesday, July 13, 2004 1:07 PM > To: Young Nam > Cc: pgsql-jdbc@postgresql.org > Subject: Re: [JDBC] JDBC connection issue > > > > > On Tue, 13 Jul 2004, Young Nam wrote: > > > Thanks for speedy replies, Kris. > > > > I've included both jar files in the CLASSPATH. Same error. > > > > What exactly is the CLASSPATH and what exact command are you running java > with? > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > > > > !DSPAM:40f428f2313221402172797! > > -- Dave Cramer 519 939 0336 ICQ # 14675561