Skip to content

Allow explict path to DLL #68

@mikedeskevich

Description

@mikedeskevich

This may be related to issue #2 and where the DLL is on the file system.

In Java 21, I can no longer hack the java.library.path value at runtime and point to a directory to search for loading the library. The DLL either has to be in the current working directory or the PATH environment variable (or in the java.library.path that's specified at java startup with -D).

In my distribution, I know where the installer is going to put the DLL, but I can guarantee that the user is going to have that in their PATH, so I'd like to point to that location at runtime.

I tried doing a system.load(dllPath) before calling jacob, but it still tries to load the DLL on it's own and I get a not found exception when the DLL isn't in the path.

Can you expose a function that allows the location of the DLL to be set at runtime before we try to load it? Or something similar that allows the location of the DLL to be specified at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions