I Have a program that I created in Netbeans that uses jacob-1.18.jar to open a HTML Outlook email. jacob-1.18.jar requires a dll to work (jacob-1.18-x64.dll). This DLL is stored in project folder and application works perfectly on my PC using Netbeans compiler.
The issue I'm having is when I give the JAR file to another person they cannot use it as they do not have dll file. I understand that I need to export the DLL with the Jar File and then when it runs it needs to add to java library path (System.load) but there does not seem to be clear solutions online for this issue which has dated back as far as 2009.
I also cannot just add the DLL C:\Program Files (x86)\Java\jre1.8.0_361\bin on other persons laptop as that folder has admin privileges due to being a work laptop.
Is there any new methods available for this issue or can anyone supply code that is easy to understand and execute .
Read through past issues on stack overflow