Login  Register

Re: java.lang.UnsatisfiedLinkError in an app packaged with jpackager

Posted by Sven Gothel on Dec 14, 2019; 4:38pm
URL: https://forum.jogamp.org/java-lang-UnsatisfiedLinkError-in-an-app-packaged-with-jpackager-tp4040180p4040181.html

Which JogAmp modules and _version_ are you using?
(Assuming you use the latest tip of the master branches)

Show us the jpackager recipe.

TBH I never tried it yet, as I am still doing my janitor rounds
to release 2.4.0 - currently tackling the Android builds.

<https://jogamp.org/wiki/index.php?title=SW_Tracking_Report_Feature_Objectives_Overview#Java_11>

Goal for 2.4.0 is Bug 1363, i.e. working with Java 11.
Any issue with Java 11+ features should be resolved with Bug 1404.

But this seems to be a great forward looking discussion,
so maybe you like to elaborate as asked above.

Maybe best if you can send me a private email,
so I can give you bugzilla access - managing this issue there,
as a blocking dependency to Bug 1404.

You shall also state what is working already there.

Thank you.

On 12/14/19 5:30 PM, eazycncn [via jogamp] wrote:

> I'm moving my application to use jpackager.
> This works in macOS.
> On Windows 10 I get following error:
>
>
> java.lang.UnsatisfiedLinkError: Can't load library: C:\Program
> Files\EazyCNC\app\natives\windows-amd64\\gluegen-rt.dll
>         at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.base/java.lang.Runtime.load0(Unknown Source)
>         at java.base/java.lang.System.load(Unknown Source)
>         at
> com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624)
>
>         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:427)
>
>         at com.jogamp.common.os.Platform$1.run(Platform.java:317)
>         at java.base/java.security.AccessController.doPrivileged(Native Method)
>         at com.jogamp.common.os.Platform.<clinit>(Platform.java:287)
>         at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147)
>         at swing.SwingWidgetFactory.greateOpenGLView(Unknown Source)
>
>
> In Windows the jpackager creates an installer that unpacks the code to
>
> C:\Program Files\EazyCNC\
>
> and all the jars into
>
> C:\Program Files\EazyCNC\lib
>
> and all jogl stuff to
>
> C:\Program Files\EazyCNC\lib\jogljars11
>
> which contains these files:
>
> gluegen-rt-natives-linux-amd64.jar
> gluegen-rt-natives-macosx-universal.jar
> gluegen-rt-natives-windows-amd64.jar
> gluegen-rt.jar
> gluegen.jar
> jocl-natives-macosx-universal.jar
> jocl.jar
> jogl-all-natives-linux-amd64.jar
> jogl-all-natives-macosx-universal.jar
> jogl-all-natives-windows-amd64.jar
> jogl-all.jar
> jogl.jar
>
> I'm at loss how to debug this further or what to try so I'm asking for ideas.
>
> FYI: I'm using jdk-11.0.2 but jpacke is from jdk-13 because the 11.0.2 version
> has bugs.
>
> wbr Kusti
>
>
> ------------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/java-lang-UnsatisfiedLinkError-in-an-app-packaged-with-jpackager-tp4040180.html
>
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, click here
> <
> NAML
> <
http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1