Skip to content

jzy3d library in the Eclipse plug-in project can not find the dll file problem #317

Description

@TigerGod

I am using the jzy3d library in an Eclipse 4 rcp project or it can also be considered as an Eclipse plugin project, my project is not run through Maven so the jzy3d library is added to my project by adding a third party library. I have the following problem when running the project

1、this is my plugin project structure.

Image

2、The jzy3d library has been added in the MENIFEST.MF file under the project class path
in runtime configuration
Image

in build configuration
Image

note:
a.these two steps can make sure the jze3d libs add into classpath.
b.I downloaded all the jzy3d libraries locally via an additional Maven project, so I can make sure all the jzy3d jars are correct!
c.Eclipse plugin project is base on swt/jface.Eclipse 4 RCP may be different.

3、and the error ocurred in my test code.

Image

the detail error is :
!ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2025-01-26 15:48:43.581
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
!STACK 0
java.lang.UnsatisfiedLinkError: Can't load library: E:\eclipse\natives\windows-amd64\gluegen-rt.dll
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2422)
at java.base/java.lang.Runtime.load0(Runtime.java:852)
at java.base/java.lang.System.load(System.java:2025)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421)
at com.jogamp.common.os.Platform$1.run(Platform.java:317)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
at com.jogamp.common.os.Platform.(Platform.java:287)
at com.jogamp.opengl.GLProfile.(GLProfile.java:147)
at org.jzy3d.chart.Settings.detectProfile(Settings.java:28)
at org.jzy3d.chart.Settings.(Settings.java:13)
at org.jzy3d.chart.Settings.getInstance(Settings.java:58)
at jzytest.parts.SamplePart.createComposite(SamplePart.java:78)
.........

4、the question talk.
I found the dll file mentioned in the error elsewhere, somewhere on the c drive: C:\Users\HFIPS\AppData\Local\Temp\jogamp_0000\file_cache\jln57749981742726823\ jln1901342071170333526\natives\windows-amd64
Image

This path is completely different from the one mentioned in the error report, I didn't understand why this error occurs, but I think there might be some kind of problem in your code to find the wrong path. Let's discuss it, this problem is a real headache and I would love to solve it, this case project is very important for me.

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