Saturday, November 27, 2010

How to include derby into WEB project

If you are working in Eclipse on a WEB project and your boss pushed you to work with derby, it is OK, but would take you some tricks to integrate the derby library properly.

As you have read in all tutorials, just install the plug in for your eclipse, unzip it and GO. BUT somehow your project cannot find the ClientDriver or EmbeddedDriver. Yeah, very confusing, because you probably have already included the libraries in the class path and made your project Derby Nature. Still does not work?

Since it is a web project and Derby is not in the standard distribution of the eclipse or Java IDE you need to include the libraries in the project. The best way to do so is to include all four jar files under the WEB-INF/lib directory.

Refresh your project, start again and voila, it works :)

No comments:

Post a Comment