Put Derby first in your classpath Classpathperformance implications of

The structure of your classpath can affect startup time and the time required to load a particular class.

The classpath is searched linearly, so locate 's libraries at the beginning of the classpath so that they are found first. If the classpath first points to a directory that contains multiple files, booting can be very slow.