problem compiling the jdbc driver

From: Silky Mittal <silky212001(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: problem compiling the jdbc driver
Date: 2001-03-21 05:29:54
Message-ID: 20010321052954.13448.qmail@web11806.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Dear Sir,
i am using postgresql 6.5.3 on red hat 6.2...
i downloaded j2sdk-1_3_0_02-linux-rpm.bin from
java.sun.com and stored it in my root directory with
the same name.
i have jdbc6.5-1.2.jar and
jdbc6.5-1.1.jar in /usr/lib/pgsql
directory.
i use following code for the driver in my java
application:
Class.forName("org.postgresql.Driver")
it compiles fine but when i give java filename it
gives the following error:

java.lang.ClassNotFoundException:org/postgresql/Driver
then i included the name of jar file in my
classpath with the command
export CLASSPATH=.:/usr/lib/pgsql/jdbc6.5-1.2.jar
it still gives the same problem........
then i tried to compile the driver using the
command
make jdbc2
but it gives the following error:
make:**No rule to make target jdbc2 Stop
also my system has no file called postgresql.jar.
please tell me what to do.
Thanks
help will be appreciated
Silky

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter T Mount 2001-03-21 09:11:59 Re: Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()
Previous Message Cedar Cox 2001-03-20 18:43:59 triggered data change violation