@Override
    public void start(BundleContext ctx) {
        log.fine("start bundle");
        String skipAll = LlamaBundleActivator.class.getSimpleName() + SKIP_SUFFIX;
        if (SKIP_VALUE.equals(System.getProperty(skipAll))) {
            log.fine("skip loading of native libraries");
            return;
        }
        if (checkFilenames(
                    "/dev/nvidia0",
                    "/opt/vespa-deps/lib64/cuda/libjllama.so")) {
            System.setProperty(PATH_PROPNAME, "/opt/vespa-deps/lib64/cuda");
        } else if (checkFilenames(
                    "/opt/vespa-deps/lib64/libjllama.so")) {
            System.setProperty(PATH_PROPNAME, "/opt/vespa-deps/lib64");
        } else {
            throw new IllegalArgumentException("Cannot find shared libraries");
        }
    }
@author arnej
Finds native libraries when the bundle is activated.
container-llama/src/main/java/ai/vespa/llama/LlamaBundleActivator.java