I'm running this under windows vista cmd prompt:
java -classpath C:\postgresql-8.4-701.jdbc4.jar -jar myJar.jar
I get the error:
Cannot load postgresql driver. org.postgresql.Driver
The line causing the error is:
Class.forName("org.postgresql.Driver");
But in eclipse, the program works, and the postgresql library is referenced under the "Referenced Libraries".
How to fix this please ? I need to run the program under the windows cmd prompt while getting the same result I get in Eclipse IDE.