RE: JDBC Errors

From: "Charlie Derr" <charlie(at)webmind(dot)com>
To: "Corey Mosher" <corey(at)pgsql(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: RE: JDBC Errors
Date: 2001-03-14 18:09:52
Message-ID: NDBBLJJLLFOJMLCMJPLOAEGCHAAA.charlie@webmind.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

|
| Hi folks,
| Just wondering if I am reading the error correctly.
|
|Hub>>java sample
|Exception caught.
|java.lang.ClassNotFoundException: org.postgresql.Driver
|java.lang.ClassNotFoundException: org.postgresql.Driver
| at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:282)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:124)
| at sample.<init>(sample.java:10)
| at sample.main(sample.java:38)
|
|I am assumung that this means the it isn't finding org.postgresql.Driver
|in the postgresql.jar file.
|
|Am I wrong?

No, I think you're right. My guess is that it isn't finding the jar file.
Add the path to your jarfile to your CLASSPATH environment variable, and try
again.

good luck,
~c

|
|Corey Mosher
|
|
|
|
|---------------------------(end of broadcast)---------------------------
|TIP 6: Have you searched our list archives?
|
|http://www.postgresql.org/search.mpl

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Corey Mosher 2001-03-14 18:19:59 RE: JDBC Errors
Previous Message Corey Mosher 2001-03-14 17:53:18 JDBC Errors