Re: FW: PostgreSQL JDBC Installation
От | Nelson Arapé |
---|---|
Тема | Re: FW: PostgreSQL JDBC Installation |
Дата | |
Msg-id | 200506081456.51871.narape@ica.luz.ve обсуждение исходный текст |
Ответ на | FW: PostgreSQL JDBC Installation (Stefan Grasse <stefan-grasse@web.de>) |
Список | pgsql-jdbc |
El Mié 08 Jun 2005 09:07, Stefan Grasse escribió: > Hello, > > I got a question when downloading the newest > postgresql-8.1dev-400.jdbc3.jar onto the Windows platform. Where do I have > to store this jar ? Any where on your hardrive. Ussually people have a specially directory where they store jars. Other have a lib directory in their project directory. There is no a standard way > I have to unpack this jar, correct ? No > Do I have to set a CLASSPATH or similar variables (like PATH ?) ? If yes, > what value should this variable have ? You have to add the postgresql-8.1dev-400.jdbc3.jar to your classpath. There are several ways to do that. * If you are compiling from the command prompt javac -classpath .:/path/to/jdebc/jar Project.java (on unix) javac -classpath .;\path\to\jdebc\jar Project.java (on windows) * If you use a IDE, you have to consult your IDE documentation in order to add the jdbc jar to your classpath. I hope to have helped Nelson Arapé PD: Sorry for my english > > When describing how to connect to the driver with the statement > Class.forName("org.postgresql.Driver"); > I got the exception: > java.lang.ClassNotFoundException: org.postgresql.Driver > > What went wrong ? > > I hope to get an answer of you soon > Best regards > Stefan > > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend
В списке pgsql-jdbc по дате отправления: