If the SQL Server 2008 R2 driver is not compatible with JDK1.4, you are pretty stuck unless you can run it under 1.5.