Trouble With JDBC

From: Corey Mosher <corey(at)pgsql(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Trouble With JDBC
Date: 2001-02-16 14:46:11
Message-ID: Pine.BSF.4.21.0102161040490.27763-100000@rage.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

Thanks

Corey Mosher

-----------------------------
Hub.Org Networking Services
251 Main St.
Wolfville, NS
Canada
B0P 1X0
Email: corey(at)hub(dot)org
Phone: (902) 542-3657
-----------------------------
PostgreSQL, Inc.
251 Main St.
Wolfville, NS
Canada
B0P 1X0
Email: corey(at)pgsql(dot)com
Phone: (902) 542-0713
-----------------------------
Fax: (902) 542-5386

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mirko Zeibig 2001-02-16 14:55:07 newbie: retep wants to have username?
Previous Message Peter T Mount 2001-02-16 10:07:12 Re: [INTERFACES] data trnsfer through Web.