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