From: | "Eduardo Jos Hernndez Cisneros" <ejhernand3z(at)hotmail(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | JDBC driver in Windows machines |
Date: | 2002-03-01 01:34:37 |
Message-ID: | F48QCXeklLVOcmeTEq00001ac72@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2002-03-01 01:57:22 | Re: JDBC driver in Windows machines |
Previous Message | Paulo Delgado | 2002-02-28 23:59:12 | Re: Problem connecting by JDBC with a SERVLET |