pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
2+ messages / 2 participants
[nested] [flat]

* (no subject)
@ 2001-03-08 17:09 Dax Duskin <dax.duskin@zsassociates.com>
  2001-03-12 15:36 ` Re: Peter Mount <peter@retep.org.uk>
  0 siblings, 1 reply; 2+ messages in thread

From: Dax Duskin @ 2001-03-08 17:09 UTC (permalink / raw)
  To: pgsql-jdbc


Hello all.

I was hoping someone could help me with the following:

I am trying to install jdbc and I am having some trouble.  I am using the
Linux-Mandrake Distribution (7.2).

First I installed the postgresql-jdbc rpm, but I couldn't find my postgresql.jar
file anywhere (that's supposed to happen right?).  Stumped I copied the source
code into my /opt directory.

I entered the directory /src/interfaces/jdbc.
I typed make jdbc2 jar and received this error:

org/postgresql/Connection.java:1: error:Cannot find type "org/postgresql/Field"
make[1]: *** [org/postgresql/Connection.class] Error 1
make[1]: Leaving directory '/opt/postgresql-7.0.2/src/interfaces/jdbc'
make *** [jdbc2] Error 2

I tried a number of things.  I tried building jdbc1 as well.  and I tried
building postgresql myself without using rpms. no luck.  There are 4 jar files
in my /var/lib/pgsql directory.  jdbc-(versionnum)-.jar  I tried compiling a few
java programs using these, but i wasn't able to locate the driver when the
programs were run.  What are those 4 jars used for anyway?

Thanks in advance.
Dax Duskin







^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re:
  2001-03-08 17:09 (no subject) Dax Duskin <dax.duskin@zsassociates.com>
@ 2001-03-12 15:36 ` Peter Mount <peter@retep.org.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Mount @ 2001-03-12 15:36 UTC (permalink / raw)
  To: Dax Duskin <dax.duskin@zsassociates.com>; pgsql-jdbc

At 11:09 08/03/01 -0600, Dax Duskin wrote:

>Hello all.
>
>I was hoping someone could help me with the following:
>
>I am trying to install jdbc and I am having some trouble.  I am using the
>Linux-Mandrake Distribution (7.2).
>
>First I installed the postgresql-jdbc rpm, but I couldn't find my 
>postgresql.jar
>file anywhere (that's supposed to happen right?).  Stumped I copied the source
>code into my /opt directory.
>
>I entered the directory /src/interfaces/jdbc.
>I typed make jdbc2 jar and received this error:
>
>org/postgresql/Connection.java:1: error:Cannot find type 
>"org/postgresql/Field"

unset you CLASSPATH and try again. A common problem.

Peter

I tried a number of things.  I tried building jdbc1 as well.  and I tried
>building postgresql myself without using rpms. no luck.  There are 4 jar files
>in my /var/lib/pgsql directory.  jdbc-(versionnum)-.jar  I tried compiling 
>a few
>java programs using these, but i wasn't able to locate the driver when the
>programs were run.  What are those 4 jars used for anyway?

One for each type of JVM. Place the one your your JVM version (and only 
one) into your CLASSPATH then try running with it.

PS: In Java you don't compile against a .jar file, you just use it. In fact 
in 90% of use, you don't need the .jar file to be present to compile.

Peter


>Thanks in advance.
>Dax Duskin
>
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://www.postgresql.org/search.mpl




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-03-12 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-08 17:09  Dax Duskin <dax.duskin@zsassociates.com>
2001-03-12 15:36 ` Re: Peter Mount <peter@retep.org.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox