0

Short version: Can I replace the derby.jar that came with my JDK (from Oracle) with the latest derby.jar from Apache?

Long version: I've been using the Java DB (Oracle's supported distribution of the Apache Derby open source database) that comes with the JDK for a few years. I just found out that Apache still does regular updates to the Derby database libraries, the lastest one from June 2012 is here. The latest one contains some features I would like to use.

But is the Oracle derby.jar interchangeable with the Apache derby.jar?

3
  • Java DB is Oracle's supported distribution of the Apache Derby... Yes you can! But maybe you will not have anymore Oracle support, if you already have subscribed some tickets. Sep 11, 2012 at 16:12
  • @ThierryB: Thanks. I can live with that I think. Sep 11, 2012 at 17:06
  • @JohnFitzpatrick ok, good travel in the air without oracle net :) Sep 11, 2012 at 17:14

1 Answer 1

1

I think you should have few problems, but note that this will count as an upgrade, so you should spend a bit of time reading http://db.apache.org/derby/docs/10.9/devguide/cdevupgrades.html and get comfortable with the concepts of "soft" and "hard" upgrades.

That is, if you truly want the two jars to be "interchangeable", meaning that you want to use the newer version of Derby, then go back to the older one, then make sure you only do a soft upgrade, since once you have done a hard upgrade you can't go back to the older version.

Myself, I would say, switch to the newer Apache derby.jar, do a hard upgrade of your existing databases, and plan not to go back to the older version of Derby.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.