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 9BBB4D1B1CE for ; Tue, 13 Jul 2004 16:01:04 -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 05110-04 for ; Tue, 13 Jul 2004 19:00:56 +0000 (GMT) Received: from mail.devisser-siderius.com (unknown [207.164.133.174]) by svr1.postgresql.org (Postfix) with ESMTP id 58C4DD1B1A1 for ; Tue, 13 Jul 2004 16:00:50 -0300 (ADT) Received: from polo ([207.164.133.170]) by mail.devisser-siderius.com (8.11.6/8.9.3) with ESMTP id i6DJ0lw27489; Tue, 13 Jul 2004 15:00:47 -0400 From: Jan de Visser To: "Young Nam" , pgsql-jdbc@postgresql.org Subject: Re: JDBC connection issue Date: Tue, 13 Jul 2004 15:01:02 -0400 User-Agent: KMail/1.6.82 References: <581C48EBC132FF459E62A6809D0D72AE22C74C@mail.sharedmarketing.com> In-Reply-To: <581C48EBC132FF459E62A6809D0D72AE22C74C@mail.sharedmarketing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407131501.03379.jdevisser@digitalfairway.com> 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/143 X-Sequence-Number: 10527 n July 13, 2004 02:47 pm, you wrote: > Hi, > > I changed CLASSPATH to > /usr/local/pgsql/share/java/postgresql.jar:/home/youngnam/Developments/java >_apps/xlang/src/Xlang.class (or Xlang.java, I tried both) I would try ....../postgresql.jar:/home/youngnam/Developments/java_apps/xlang/src (Has to be a directory or .jar). > > and then when i just compile and run > > >javac Xlang.java > >java Xlang > > I get >Exception in thread "main" java.lang.NoClassDefFoundError: Xlang Couple of more things: 1. I am not your private java support engineer. It is considered *really* bad form to directly address listmembers like you did. 2. Reading a java introduction may help you here. > > Thanks.. JdV!! > > -----Original Message----- > From: Jan de Visser [mailto:jdevisser@digitalfairway.com] > Sent: Tuesday, July 13, 2004 1:30 PM > To: Young Nam > Subject: Re: [JDBC] JDBC connection issue > > On July 13, 2004 02:20 pm, you wrote: > > CLASSPATH is set to > > /usr/local/pgsql/share/java/postgresql.jar:/home/youngnam/Development/jav > >a_ 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 > > > > ant does not use $CLASSPATH. Specify a nested element. See the > ant docs. > > > Thanks again, > > > > YJ > > JdV!! > > > -----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 -- -------------------------------------------------------------- Jan de Visser jdevisser@digitalfairway.com Baruk Khazad! Khazad ai-menu! --------------------------------------------------------------