Some Questions about JDBC - Mailing list pgsql-jdbc

From
Subject Some Questions about JDBC
Date
Msg-id 17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com
Whole thread Raw
Responses Re: Some Questions about JDBC
List pgsql-jdbc
hello
i am a beginer in Java.

i want to use your software PostgreSQL to study DateBase.

Now,i hava some mistakes following … when i use "Class.forName( "org.postgresql.Drvier" );" then


D:\temp\ch18\fig18_24>java TableDisplay
Failed to load JDBC/ODBC driver.
java.lang.ClassNotFoundException: org.postgresql.Drvier
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at TableDisplay.<init>(TableDisplay.java:25)
        at TableDisplay.main(TableDisplay.java:144)

how can i do ?
write ".;C:\Program Files\PostgreSQL\8.0\jdbc" in the classpath ?
Or where should i put the "postgresql-8.0.309.jdbc3.jar" ?
In the "D:\Java\Java\jdk1.5.0_01\jre\lib\ext" ? or other ways ?


pgsql-jdbc by date:

Previous
From: Stéphane RIFF
Date:
Subject: Re: Connection pool problem
Next
From: Jan de Visser
Date:
Subject: Re: Some Questions about JDBC