Skip to content

Extension loading from classpath #71

@616c

Description

@616c

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions