Imports define what is imported at compile time, and affect compilation. Exceptions occur at runtime - is the library containing DbUtils on the classpath? If so, is it the most up to date library?