From: | Aaron Mulder <ammulder(at)alumni(dot)princeton(dot)edu> |
---|---|
To: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: oops - Trying to do a simple connect to 7.2.1 DB -- unix |
Date: | 2002-08-17 16:34:27 |
Message-ID: | Pine.LNX.4.44.0208171229560.15436-100000@gentoo.CS.Princeton.EDU |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
This is *definitely* not a PostgreSQL issue, but...
Does it tell you anything that the class is cannot find is
HelloPostgresql? That is _your_ class, not a PostgreSQL class.
Try "echo $CLASSPATH". You'll need both the directory containing
your class and the PostgreSQL JAR on the CLASSPATH (the current directory
is *not* included by default). Alternately, you could pass them in on the
command line:
java -cp .:/somewhere/pgsql.jar HelloPostgresql
Aaron
On Sat, 17 Aug 2002, Michael Hanna wrote:
> I get a NoClassDefFoundError.
>
> Michael
>
> -rw-r--r-- 1 michael staff 3795 Aug 11 07:40 HelloPostgresql.class
> -rw-r--r-- 1 michael staff 4017 Aug 11 07:39 HelloPostgresql.java
> -rwxr-xr-- 1 michael staff 115 Jul 24 17:34 start_tomcat
> -rwxr-xr-- 1 michael staff 116 Jul 24 17:35 stop_tomcat
> -rwxr-xr-x 1 michael wheel 859 Jul 30 07:44 vt.pl
> [x1-6-00-03-93-08-eb-2c:~/bin] michael% java HelloPostgresql
> Exception in thread "main" java.lang.NoClassDefFoundError:
> HelloPostgresql
> [x1-6-00-03-93-08-eb-2c:~/bin] michael%
From | Date | Subject | |
---|---|---|---|
Next Message | Kaarle Kaila | 2002-08-17 17:07:48 | Updateable ResultSet |
Previous Message | Michael Hanna | 2002-08-17 13:27:11 | Re: oops - Trying to do a simple connect to 7.2.1 DB -- unix |