Re: JDBC classes? - Mailing list pgsql-jdbc

From Nick Fankhauser
Subject Re: JDBC classes?
Date
Msg-id NEBBLAAHGLEEPCGOBHDGIENAEAAA.nickf@ontko.com
Whole thread Raw
In response to JDBC classes?  ("Paul Wallace" <paul.wallace@prosolutions-ap.com>)
List 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@ontko.com  Phone 1.765.935.4283  Fax 1.765.962.9788
Ray Ontko & Co.     Software Consulting Services     http://www.ontko.com/


pgsql-jdbc by date:

Previous
From: "Paul Wallace"
Date:
Subject: JDBC classes?
Next
From: "Dave Cramer"
Date:
Subject: Re: JDBC classes?