UnsatisfiedLinkError when launching jar with native Java lau - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mmccomb
Posts: 3
Joined: Tue Apr 30, 2013 2:25 pm

UnsatisfiedLinkError when launching jar with native Java lau

I have a jar that uses a dll that resides in the same folder as the jar. When I launch the java jar using "java -jar" in the command line while in the directory with the dll I have no issues. When I launch the program using the Advanced installer created exe file I get an unsatisfied link error. I have tried with the dll in the same path as the exe, and with the jar, exe and dll in the same path. I have also tried all the above using the "Set product folder as current" option and I get the same error. Please advise.

I am using Advanced installer version 9.9.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: UnsatisfiedLinkError when launching jar with native Java

Hello,

I'm not sure why this happens. Can you please add your DLL containing folder in the "Java Library Path" section, from "Java Products -> Virtual Machine" tab, and see if the behavior still persist? Also, if the related DLL used by your JAR try to link other libraries, then you should add its containing folder in the "System Library Path" section.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mmccomb
Posts: 3
Joined: Tue Apr 30, 2013 2:25 pm

Re: UnsatisfiedLinkError when launching jar with native Java

Hi Daniel,

I tried adding the containing folder to the "Java Library Path", and I also tried adding it to the "System Library Path", and I tried both together, and none of these operations resolved the issue.

-Matt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: UnsatisfiedLinkError when launching jar with native Java

Hello Matt,

Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate it? Also, can you please send us the related JAR and DLL file so we can try to reproduce and investigate this? It would be useful if you can isolate the behavior in a sample and send it to support at advancedinstaller dot com so we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”