Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include JNI related files, documentation not clear #117

Open
chjan opened this issue Jan 23, 2022 · 4 comments
Open

How to include JNI related files, documentation not clear #117

chjan opened this issue Jan 23, 2022 · 4 comments

Comments

@chjan
Copy link

chjan commented Jan 23, 2022

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

@siordache
Copy link
Member

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

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

@chjan
Copy link
Author

chjan commented Jan 24, 2022

Thanks. For my study.

@ctadlock
Copy link

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

@chjan
Copy link
Author

chjan commented Jun 14, 2022

good idea. Will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants