I use native libs like comfyj. I've never packaged the DLLs in a jar, just include DLLs in the install process so the DLLs show up in the root of the application.
You may need to contact the developer of the native jars to understand the delivery limitations. Some expect the files to be the path, others the root of the app, some have special defined values.
I use one-jar to put all application associated projects and jars together, and leave the native stuff in the root.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
Are there any good guidelines for including the native libs in the JAR?
Thanks.
I mean, should the libraries be placed in a specific directory, or be referenced in any specific way from the application code?
Thanks.
I use native libs like comfyj. I've never packaged the DLLs in a jar, just include DLLs in the install process so the DLLs show up in the root of the application.
You may need to contact the developer of the native jars to understand the delivery limitations. Some expect the files to be the path, others the root of the app, some have special defined values.
I use one-jar to put all application associated projects and jars together, and leave the native stuff in the root.