powered by Jive Software

JTDS in plugin

I’ve been having a really hard time writing a plugin that needs to access an outside SQL server. For whatever reason, the build fails and gives the following error:

[javac] C:\Projects\openfire\src\plugins\timeclockpics\src\java\org\jivesoftware\openfi re\plugin\TimeclockPicsPlugin.java:13: package net.sourceforge.jtds does not exist
[javac] import net.sourceforge.jtds.*;
[javac] ^
[javac] 1 error

I know that the jtds.jar is included in the Openfire sources, and this also fails if I try to put it in the plugin’s lib/ directory.

Anyone have a clue as to what is going on here?

I found that it wasn’t necessary to include it at all - the JDBC driver is callable without an Import.