Thread: Need to use JDK 1.4

Need to use JDK 1.4

From
"David Hooker"
Date:
We're working on a project using JDK 1.4.  From reading this list's archives, I see that there isn't a 1.4 version of the Postgres JDBC driver.  Is there any way at all that I can use the existing JDBC drivers under 1.4???  If not, are there any other suggestions on how I can get up and going with Postgres with my JDK 1.4 program?
 
Also, is there a time estimate on when the 1.4 drivers will be ready?
 
 

Re: Need to use JDK 1.4

From
Joe Dumoulin
Date:
I am fairly new to jdbc, but have been using postgresql for awhile.  I am
running the 6.5 jdbc (old postgres db) with tomcat4 and j2sdk4.1.  I'm
doing only simple stuff so far, but no problems.

My reading of the archives says that you can't compile the postgresql jdbc
driver with jdk 1.4.  It seems to run fine from the binary though.

Joe D
-----

On Wed, 9 Jan 2002, David Hooker wrote:

> We're working on a project using JDK 1.4.  From reading this list's
> archives, I see that there isn't a 1.4 version of the Postgres JDBC
> driver.  Is there any way at all that I can use the existing JDBC
> drivers under 1.4???  If not, are there any other suggestions on how I
> can get up and going with Postgres with my JDK 1.4 program?
>
> Also, is there a time estimate on when the 1.4 drivers will be ready?
>
>
>


Re: Need to use JDK 1.4

From
"David Hooker"
Date:
So the 1.4 JVM has no problems loading the classes for the current jdbc
driver?

-----Original Message-----
From: Joe Dumoulin [mailto:joe@bresgal.com]
Sent: Wednesday, January 09, 2002 4:50 PM
To: David Hooker
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4


I am fairly new to jdbc, but have been using postgresql for awhile.  I
am
running the 6.5 jdbc (old postgres db) with tomcat4 and j2sdk4.1.  I'm
doing only simple stuff so far, but no problems.

My reading of the archives says that you can't compile the postgresql
jdbc
driver with jdk 1.4.  It seems to run fine from the binary though.

Joe D
-----

On Wed, 9 Jan 2002, David Hooker wrote:

> We're working on a project using JDK 1.4.  From reading this list's
> archives, I see that there isn't a 1.4 version of the Postgres JDBC
> driver.  Is there any way at all that I can use the existing JDBC
> drivers under 1.4???  If not, are there any other suggestions on how I
> can get up and going with Postgres with my JDK 1.4 program?
>
> Also, is there a time estimate on when the 1.4 drivers will be ready?
>
>
>




Re: Need to use JDK 1.4

From
"Dave Cramer"
Date:
The 1.4 jvm will load the class fine, just don't call any jdbc3.0
methods

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of David Hooker
Sent: Wednesday, January 09, 2002 5:57 PM
To: 'Joe Dumoulin'
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4


So the 1.4 JVM has no problems loading the classes for the current jdbc
driver?

-----Original Message-----
From: Joe Dumoulin [mailto:joe@bresgal.com]
Sent: Wednesday, January 09, 2002 4:50 PM
To: David Hooker
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4


I am fairly new to jdbc, but have been using postgresql for awhile.  I
am running the 6.5 jdbc (old postgres db) with tomcat4 and j2sdk4.1.
I'm doing only simple stuff so far, but no problems.

My reading of the archives says that you can't compile the postgresql
jdbc driver with jdk 1.4.  It seems to run fine from the binary though.

Joe D
-----

On Wed, 9 Jan 2002, David Hooker wrote:

> We're working on a project using JDK 1.4.  From reading this list's
> archives, I see that there isn't a 1.4 version of the Postgres JDBC
> driver.  Is there any way at all that I can use the existing JDBC
> drivers under 1.4???  If not, are there any other suggestions on how I

> can get up and going with Postgres with my JDK 1.4 program?
>
> Also, is there a time estimate on when the 1.4 drivers will be ready?
>
>
>




---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



Re: Need to use JDK 1.4

From
Rene Pijlman
Date:
On Wed, 9 Jan 2002 14:52:55 -0600, you wrote:
>We're working on a project using JDK 1.4.  From reading this list's
>archives, I see that there isn't a 1.4 version of the Postgres JDBC
>driver.  Is there any way at all that I can use the existing JDBC
>drivers under 1.4???

You can apply the small patch that I posted for review a while
ago (see attachement). This simply adds the missing methods that
enable the driver to be compiled with JDK 1.4.

The problem with that is that the patched code will _not_
compile with JDK 1.3 and older. I'm working on a better solution
which allows us to maintain one tree with little or no code
duplication for all versions of JDK/JDBC, but this requires
reshuffling code into a new class structure and it will take
some time to complete.

>Also, is there a time estimate on when the 1.4 drivers will be ready?

Sorry, not from me :-)

Regards,
René Pijlman <rene@lab.applinet.nl>

Attachment

Re: Need to use JDK 1.4

From
"David Hooker"
Date:

Can someone tell me HOW to apply these patches?  I just pulled the
source from cvs, and I need to compile the driver under 1.4.  I need the
PostgresqlDataSource and other XA stuff in my jar file.

-----Original Message-----
From: Rene Pijlman [mailto:rene@lab.applinet.nl]
Sent: Wednesday, January 09, 2002 5:40 PM
To: David Hooker
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4


On Wed, 9 Jan 2002 14:52:55 -0600, you wrote:
>We're working on a project using JDK 1.4.  From reading this list's
>archives, I see that there isn't a 1.4 version of the Postgres JDBC
>driver.  Is there any way at all that I can use the existing JDBC
>drivers under 1.4???

You can apply the small patch that I posted for review a while
ago (see attachement). This simply adds the missing methods that
enable the driver to be compiled with JDK 1.4.

The problem with that is that the patched code will _not_
compile with JDK 1.3 and older. I'm working on a better solution
which allows us to maintain one tree with little or no code
duplication for all versions of JDK/JDBC, but this requires
reshuffling code into a new class structure and it will take
some time to complete.

>Also, is there a time estimate on when the 1.4 drivers will be ready?

Sorry, not from me :-)

Regards,
René Pijlman <rene@lab.applinet.nl>

Attachment

Re: Need to use JDK 1.4

From
"Dave Cramer"
Date:
David,

On a *nix machine there is a program patch which when executed with this
diff ie patch < diff then it will apply the patches. The problem is this
patch is old, and will not likely apply with out some manual
intervention.

Regards,

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of David Hooker
Sent: Thursday, March 14, 2002 1:05 PM
To: 'Rene Pijlman'
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4




Can someone tell me HOW to apply these patches?  I just pulled the
source from cvs, and I need to compile the driver under 1.4.  I need the
PostgresqlDataSource and other XA stuff in my jar file.

-----Original Message-----
From: Rene Pijlman [mailto:rene@lab.applinet.nl]
Sent: Wednesday, January 09, 2002 5:40 PM
To: David Hooker
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Need to use JDK 1.4


On Wed, 9 Jan 2002 14:52:55 -0600, you wrote:
>We're working on a project using JDK 1.4.  From reading this list's
>archives, I see that there isn't a 1.4 version of the Postgres JDBC
>driver.  Is there any way at all that I can use the existing JDBC
>drivers under 1.4???

You can apply the small patch that I posted for review a while ago (see
attachement). This simply adds the missing methods that enable the
driver to be compiled with JDK 1.4.

The problem with that is that the patched code will _not_ compile with
JDK 1.3 and older. I'm working on a better solution which allows us to
maintain one tree with little or no code duplication for all versions of
JDK/JDBC, but this requires reshuffling code into a new class structure
and it will take some time to complete.

>Also, is there a time estimate on when the 1.4 drivers will be ready?

Sorry, not from me :-)

Regards,
René Pijlman <rene@lab.applinet.nl>