Re: Trouble With JDBC - Mailing list pgsql-jdbc

From Bob Kline
Subject Re: Trouble With JDBC
Date
Msg-id Pine.LNX.4.10.10102161048070.9652-100000@rksystems.com
Whole thread Raw
In response to Trouble With JDBC  (Corey Mosher <corey@pgsql.com>)
Responses Re: Trouble With JDBC
List 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 sample.java.  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
happens.

--
Bob Kline
mailto:bkline@rksystems.com
http://www.rksystems.com


pgsql-jdbc by date:

Previous
From: Michael Stephenson
Date:
Subject: Re: Trouble With JDBC
Next
From: Corey Mosher
Date:
Subject: Re: Trouble With JDBC