Skip to content

Problem loading libraries with long paths #243

@Boereck

Description

@Boereck

Hi,

I am working on a Windows 7 (64 bit) but on a 32 bit JVM and I am using JNA 3.5.2.
I have to load DLLs by their absolute path, but if I try to load them and the path has a long path (my assumption is 256 characters) loading the library fails with an UnsatisfiedLinkError.
If I understand the JNA code correctly, the absolute path to the DLL will always be computed when loading the the library, so long paths are always a problem.
Is this an inherent restriction of the operating system or is there any way around this?

Thanks,
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions