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

Re: JDBC classes?

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Paul Wallace" <paul(dot)wallace(at)prosolutions-ap(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: JDBC classes?
Date: 2001-12-10 19:12:34
Message-ID: NEBBLAAHGLEEPCGOBHDGIENAEAAA.nickf@ontko.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
>     Firstly, I am using an application server where the JDBC files must be
> put under a particular directory. If I am to downlaod
> 'precompiled drivers',
> can you tell me firstly why are they .jar files and not .class if the are
> precompiled? My app. server reads the .classes (stored ina classses
> directory).

A jar file is just a compressed version of the class files in form that java
can handle directly. I'm surprised that your app server can't use a .jar
file.

But... if you really need to, extracting the class files is easy enough-
just use "jar xf <filename>" for example: "jar xf jdbc7.1-1.2.jar"

make sure the files go in the appropriate subdirectory of your classes
directory since they are part of a package.




>     Also, I am not really aware what VM version is insatlled on
> my machine!

the command "java -version" should tell you what you have.




> I can tell you that it is 1.2 or up however. What VM is required on the
> target?

You should be able to work with any version. Assuming you are running v7.1
of PostgreSQL, if you have Java1.2 or above, use jdbc7.1-1.2.jar, otherwise,
use jdbc7.1-1.1.jar


It sounds like you're new to this. I've compiled a FAQ based on common
questions from new folk. It might be helpful to you:
http://www.fankhausers.com/postgresql/jdbc.

-Nick

--------------------------------------------------------------------------
Nick Fankhauser  nickf(at)ontko(dot)com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/


In response to

pgsql-jdbc by date

Next:From: Dave CramerDate: 2001-12-10 19:28:58
Subject: Re: Encoding
Previous:From: raymundDate: 2001-12-10 13:39:26
Subject: FW: Encoding

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