java.lang.ClassNotFoundException - Mailing list pgsql-committers

From Ulrich, Azar S.
Subject java.lang.ClassNotFoundException
Date
Msg-id D08E09E5E39ED311B01E00C00D0142FF089BC476@US-ARL-TRG.mail.saic.com
Whole thread Raw
List 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

pgsql-committers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: pgsql: Remove replicaiton FAQ item.
Next
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Remove debugging printf from #ifdef WIN32 section.