Skip to content

I had to update the JNA library of the latest version of FIJI manually to make SAMJ work #48

@jelupo

Description

@jelupo

Hi, this is for posterity:

Today I installed FIJI version 1.54p (the current date is 12-11-2025) and added the SAMJ update site. This FIJI came with Java 21.0.7 (64-bit). I'm using an Intel Mac running macOS 15.7.2.

-> SAMJ plugin started.
-> Model installation of EfficientViTSAM-I2 succeeded.
-> Encoding the image using "Go" threw the following ERROR in FIJI's Console window:

java.lang.NoSuchMethodError: 'com.sun.jna.Library com.sun.jna.Native.load(java.lang.String, java.lang.Class)'

I could FIX this by removing the following files from FIJI's "jars" folder:

jna-3.2.7.jar
jna-platform-5.14.0.jar
jnacl-1.0.0.jar

...and manually adding the following files to FIJI's "jars" folder:

jna-5.14.0.jar
jna-platform-5.14.0.jar

obtained through Maven.

Thanks for all the hard work, keep it up.

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