pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Young Nam <Ynam@sharedmarketing.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC connection issue
Date: Tue, 13 Jul 2004 15:15:03 -0400
Message-ID: <1089746103.1506.377.camel@localhost.localdomain> (raw)
In-Reply-To: <581C48EBC132FF459E62A6809D0D72AE22C74B@mail.sharedmarketing.com>
References: <581C48EBC132FF459E62A6809D0D72AE22C74B@mail.sharedmarketing.com>

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,
> 
> <target name="run" depends="build">
>   <java jar="${target}" fork="true"/> where ${target} is bin/Xlang.jar
> </target>
> 
> 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




view thread (18+ messages)  latest in thread

Message-ID: <1089746103.1506.377.camel@localhost.localdomain>
Permalink:  ../1089746103.1506.377.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1089746103.1506.377.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, Ynam@sharedmarketing.com, books@ejurka.com
  Subject: Re: JDBC connection issue
  In-Reply-To: <1089746103.1506.377.camel@localhost.localdomain>
  References: <581C48EBC132FF459E62A6809D0D72AE22C74B@mail.sharedmarketing.com> <1089746103.1506.377.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox