Re: JDBC connection issue

From: "Young Nam" <Ynam(at)sharedmarketing(dot)com>
To: "Jan de Visser" <jdevisser(at)digitalfairway(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JDBC connection issue
Date: 2004-07-13 19:08:56
Message-ID: 581C48EBC132FF459E62A6809D0D72AEF51A76@mail.sharedmarketing.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Sorry to address everyone in the list with the java questions. I am a newbie at Java and PostgreSQL who's trying to resolve why the jdbc driver isn't working. One question to another has led me here...

I will try to address the list with more jdbc specific questions in the future. Thank you for your replies.

best regards,

YJ

-----Original Message-----
From: Jan de Visser [mailto:jdevisser(at)digitalfairway(dot)com]
Sent: Tuesday, July 13, 2004 2:01 PM
To: Young Nam; pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] JDBC connection issue

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(at)digitalfairway(dot)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,
> >
> > <target name="run" depends="build">
> > <java jar="${target}" fork="true"/> where ${target} is bin/Xlang.jar
> > </target>
>
> ant does not use $CLASSPATH. Specify a nested <classpath> element. See the
> ant docs.
>
> > Thanks again,
> >
> > YJ
>
> JdV!!
>
> > -----Original Message-----
> > From: Kris Jurka [mailto:books(at)ejurka(dot)com]
> > Sent: Tuesday, July 13, 2004 1:07 PM
> > To: Young Nam
> > Cc: pgsql-jdbc(at)postgresql(dot)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(at)digitalfairway(dot)com

Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2004-07-13 19:15:03 Re: JDBC connection issue
Previous Message Jan de Visser 2004-07-13 19:01:02 Re: JDBC connection issue