badass-runtime-plugin icon indicating copy to clipboard operation
badass-runtime-plugin copied to clipboard

How to include JNI related files, documentation not clear

Open chjan opened this issue 2 years ago • 4 comments

Hi

Documentation is well written, but one thing:

It would be great if you could, either here, or in the documentation, or per link to example, show an example on how to include (in the case of Windows) DLL files that is part of a JNI solution. Or generalized: How to include non java files in the package in such a way that those files end up in the same folder as the java executable application after install.

I have read both the documentation for this plugin and for jpackage, but in vain. I am stuck.

Many thanks

chjan avatar Jan 23 '22 19:01 chjan

Have a look at this project: https://github.com/PaulWinstone/demoModule .

There are several things to do, but the most important is this one.

siordache avatar Jan 23 '22 23:01 siordache

Thanks. For my study.

chjan avatar Jan 24 '22 07:01 chjan

Embedd the dlls as resources and extract them at runtime and then load them. Much easier than messing around with packaging.

ctadlock avatar Jun 14 '22 07:06 ctadlock

good idea. Will try that.

chjan avatar Jun 14 '22 07:06 chjan