setting up OpenBD on Eclipse

If you are like myself and I doubt there are many that are also doing Java development as well as Coldfusion, I ran into a gotcha with setting up OpenBD under Eclipse. The main thing to remember is that OpenBD requires you to compile it under Java1.5, so if you haven't already installed this then you will need to install this. The gotcha for me was that I have a few Java JDK's installed, and the main default is Java6.0.

Now I am not an Eclipse guru by any means, but when I tried to compile OpenBD, for some reason it would always default to using the Java6.0 tools lib.

So after following the instructions by OpenBD, setting up the JAVA_15_TOOLS was not enough. And you need to add the Java1.5 tools lib to the libraries as well, to do this RMB on the build.xml and go run as->Ant Build..

Notices the full stops? Make sure you choose this option, and a window will pop up, from here we can then select classpath and add an external jar. Select the tools.jar for the Java1.5 development kit, and make sure that it is above the additional Tasks and Support.

Simple and it will not compile.

The thing that got me the most was that no matter, how hard I tried Eclipse always added the tools.jat from the Java6 JDK. Others may know how to get around this, but for most of us I found that this works just as well.