Re: oops - Trying to do a simple connect to 7.2.1 DB -- unix
От | Aaron Mulder |
---|---|
Тема | Re: oops - Trying to do a simple connect to 7.2.1 DB -- unix |
Дата | |
Msg-id | Pine.LNX.4.44.0208171229560.15436-100000@gentoo.CS.Princeton.EDU обсуждение исходный текст |
Ответ на | Re: oops - Trying to do a simple connect to 7.2.1 DB -- unix (Michael Hanna <zen@hwcn.org>) |
Список | 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%
В списке pgsql-jdbc по дате отправления: