Re: JDBC driver in Windows machines

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: JDBC driver in Windows machines
Дата
Msg-id 012401c1c0c4$6d5478a0$8201a8c0@inspiron
обсуждение исходный текст
Ответ на JDBC driver in Windows machines  ("Eduardo José Hernández Cisneros" <ejhernand3z@hotmail.com>)
Список pgsql-jdbc
Eduardo,

In the first example it can't find your mPgSQL class, in the second, it
can't find the postgres class.

You need to add the current directory to your path like so:

java -classpath c:\atpcsw\pgjdbc2.jar;./ mPgSQL

That should work


Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Eduardo José
Hernández Cisneros
Sent: Thursday, February 28, 2002 8:35 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] JDBC driver in Windows machines


Hello,

I am trying a JDBC connection in a Windows Me machine to a PostgreSQL
7.2
database installed in RedHat Linux 7.2. I've got a PostgreSQL 7.2 driver

called pgjdbc2.jar (http://jdbc.postgresql.org) I can not use the
driver, I
get:


C:\atpcsw>javac -classpath c:\atpcsw\pgjdbc2.jar mPgSQL.java

C:\atpcsw>java -classpath c:\atpcsw\pgjdbc2.jar mPgSQL Exception in
thread "main" java.lang.NoClassDefFoundError: mPgSQL

C:\atpcsw>java -classpath c:\atpcsw mPgSQL
java.lang.ClassNotFoundException: org.postgresql.Driver

C:\atpcsw>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java
HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

C:\atpcsw>

Could you help me with this error?

Best regards

Eduardo


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Eduardo José Hernández Cisneros"
Дата:
Сообщение: JDBC driver in Windows machines
Следующее
От: tony
Дата:
Сообщение: Re: Postgress 7.2 and j2sdk 1.4.0