Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group