-
Notifications
You must be signed in to change notification settings - Fork 7
Description
My Goal
I'm looking for a way to automatically load an extension that is provided as a simple jar in the classpath.
The extension can be successfully loaded if this is entered into a cell:
(new my.path.MyExtension()).install(getKernelInstance())
Problem
Maybe I'm missing something. I would have expected that since JJAVA_LOAD_EXTENSIONS per default is enabled, my extension is found during startup, but it isn't. The service specification in META-INF is provided, I triple-checked this.
As I understand the jjava code, the setup only takes place automatically if the jar is added via %maven magics.
I tried to use JJAVA_STARTUP_SCRIPT, but here getKernelInstance() is not available and org.dflib.jjava.JJava.getKernelInstance() returns null.
Alternatively, if this is intentionally not happening at load time, it would be an option if the kernel instance is available in startup scripts.