Skip site navigation (1) Skip section navigation (2)

Re: Trouble With JDBC

From: Bob Kline <bkline(at)rksystems(dot)com>
To: Corey Mosher <corey(at)pgsql(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Trouble With JDBC
Date: 2001-02-16 15:49:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
On Fri, 16 Feb 2001, Corey Mosher wrote:

> Hi,
>   I am trying to test out the postgres-JDBC driver.  I have a
> file called  It compiles fine, but when I run it
> I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError: sample/java
> This is what my classpath is set to:
> export CLASSPATH=.:/usr/local/java_pkgs/jdk1.1.8/lib/postgresql.jar:$CLASSPATH
> Anyone have any idea as to what is wrong?  It looks as if it can't
> find the sample.class file, but it does exist in the current
> directory.

You might want to start with an introductory book on Java.  It looks as
if you've included the source code filename extension in your
command-line invocation of the program.  Drop the ".java" and see what

Bob Kline

In response to


pgsql-jdbc by date

Next:From: Corey MosherDate: 2001-02-16 15:57:05
Subject: Re: Trouble With JDBC
Previous:From: Michael StephensonDate: 2001-02-16 15:13:44
Subject: Re: Trouble With JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group