java.lang.ClassNotFoundException

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

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2004-11-17 00:44:06 Re: need help on writing an aggregate function
Previous Message Neil Conway 2004-11-17 00:18:08 Re: postmaster segfaults with HUGE table