I want to add jdbc.jar drivers in Apache Felix. For now the only solution that I found is to embed the jar files.
Is it possible to paste all jdbc jars in folder and include this folder in Java classpath?
I want to add jdbc.jar drivers in Apache Felix. For now the only solution that I found is to embed the jar files.
Is it possible to paste all jdbc jars in folder and include this folder in Java classpath?
You can use your own starter for felix, add the jars to the class path and then export all packages as system packages using the framework property org.osgi.framework.system.packages.extra.
If you are talking about jdbc drivers then this is not really recommended though. Take a look at the pax-jdbc project. It allows to cleanly install and use jdbc drivers for many databases.
You can add your JARs to Felix'es installation path into lib
, lib/boot
, or lib/ext
directories. See README
files inside those directories to see which one suits best.