To use the driver, the JAR archive named
ltjdbc-MM.nn.pp.jar needs to be included in the class path,
either by putting it in the CLASSPATH environment variable,
or by using flags on the java command line.
For instance, assume we have an application that uses the JDBC driver
to access a database, and that application is installed as
/usr/local/lib/myapp.jar. The LightDB JDBC driver installed
as /usr/local/lightdb/share/java/ltjdbc-MM.nn.pp.jar. To
run the application, we would use:
export CLASSPATH=/usr/local/lib/myapp.jar:/usr/local/lightdb/share/java/ltjdbc-42.2.25-24.1.1.0.jar:.
java MyAppCurrent Java applications will likely use maven, gradle or some other package manager. Use this to search for the latest jars and how to include them in your project
Loading the driver from within the application is covered in Chapter 3, Initializing the Driver.