From owner-freebsd-java@FreeBSD.ORG Sun Oct 14 17:45:05 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18A5E16A418 for ; Sun, 14 Oct 2007 17:45:05 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id D11AE13C45B for ; Sun, 14 Oct 2007 17:45:04 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id l9EHj3am001366; Sun, 14 Oct 2007 10:45:03 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id l9EHj2wV001365; Sun, 14 Oct 2007 10:45:02 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sun, 14 Oct 2007 10:45:01 -0700 From: Greg Lewis To: Matthew Seaman Message-ID: <20071014174501.GA1303@misty.eyesbeyond.com> References: <47122E46.2080203@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47122E46.2080203@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@freebsd.org Subject: Re: mysql-connector-java-5.1.5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 17:45:05 -0000 On Sun, Oct 14, 2007 at 03:57:10PM +0100, Matthew Seaman wrote: > I'm trying to produce some patches to upgrade the > databases/mysql-connector-java port to the most recent GA version -- > 5.1.5. Unfortunately, things on the 5.1 branch are significantly > different to the 5.0 branch, and I'm running into a Catch 22 situation. > > Compiling the part of the driver that provides JDBC3.0 functionality > (which is essentially the same as the 5.0 version of the driver) > works fine with diablo-jdk1.5. Compiling the part of the driver that > provides JDBC4.0 functionality however requires Java 6. Unfortunately > though, compiling the JDBC3.0 code doesn't work with Java 6. It seems > I need to have multiple java versions installed and to switch between > them for different targets from build.xml > > I can't see how to make this work with the bsd.java.mk setup in ports. > If anyone cares to take a look, I've a copy of the port as a work > in progress at > > http://www.infracaninophile.co.uk/mysql-connector-java-5.1.5.tbz > > I have switched the preferences in the port so that the default is > to install the pre-compiled .jar file directly from the distfile. > In order to turn on the compilation step you now need to do: > > make -DWITH_COMPILE > > You'll need java/jdk16 installed for that. > > Any suggestions? Or should I just give up on trying to have the ports > system compile the driver? What errors do you get compiling the JDBC 3.0 version with jdk16? Is it source incompatibility or is it incompatibilities in the JDBC classes between jdk15 and jdk16? -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org