java.lang.ClassNotFoundException

From: "Ulrich, Azar S(dot)" <AZAR(dot)S(dot)ULRICH(at)saic(dot)com>
To: "'pgsql-committers(at)postgresql(dot)org'" <pgsql-committers(at)postgresql(dot)org>
Cc: "'ulricha(at)saic(dot)com'" <ulricha(at)saic(dot)com>
Subject: java.lang.ClassNotFoundException
Date: 2004-11-17 00:35:57
Message-ID: D08E09E5E39ED311B01E00C00D0142FF089BC476@US-ARL-TRG.mail.saic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

I was reading the email trail about this error message posted by and Ernst
Jan and Dave Cramer on: Date: 10 Feb 2003 16:37:51 -0500
and I can't figure out what the advice is to fix the problem.

Could you please help?

I get the this error:
java.lang.ClassNotFoundException: org.postgresql.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at ResetPass.update(ResetPass.java:23)
at ResetPass.main(ResetPass.java:44)

and I do have classpath set to where pg73jdbc3.jar is located via:
export CLASSPATH=.:~/lib
javac TestApp.java
java TestApp

but I still get the error message.

All I do is:
import java.sql.*;
public class TestApp
{
public static void main( String argv[] ) throws
java.sql.SQLException, java.lang.ClassNotFoundException
{
Class.forName( "org.postgresql.Driver" );
String url = "jdbc:postgresql://dbhost:5432/test";
Connection conn = DriverManager.getConnection( url, "test", "xxxxxxxx"
);
}
}


I appreciate any help I can get.

Thanks,

Azar Ulrich

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2004-11-17 02:22:56 pgsql: Don't allow pg_start_backup() to be invoked if archive_command
Previous Message Neil Conway 2004-11-17 00:18:28 pgsql: Backpatch fix from HEAD: Prevent a backend crash when processing