Applications do not need to explicitly load the com.hundsun.lightdb.Driver class because the ltjdbc driver jar supports the Java Service Provider mechanism. The driver will be loaded by the JVM when the application connects to LightDB™ (as long as the driver’s jar file is on the classpath).
Prior to Java 1.6, the driver had to be loaded by the application - either by calling
Class.forName("com.hundsun.lightdb.Driver");
or by passing the driver class name as a JVM parameter.
java -Djdbc.drivers=com.hundsun.lightdb.Driver example.ImageViewer
These older methods of loading the driver are still supported but they are no longer necessary.