pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tombcy@sohu.com
To: pgsql-jdbc@postgresql.org
Subject: Some Questions about JDBC
Date: Wed, 2 Mar 2005 17:34:14 +0800 (CST)
Message-ID: <17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com> (raw)


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 ?




view thread (2+ messages)  latest in thread

Message-ID: <17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com>
Permalink:  ../17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com/
Also on:    postgresql.org/message-id/17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tombcy@sohu.com
  Subject: Re: Some Questions about JDBC
  In-Reply-To: <17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com>
  References: <17845671.1109756054379.JavaMail.postfix@mx46.mail.sohu.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox