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 set systemProperty ? #1089

Open
harideva16 opened this issue Aug 15, 2021 · 0 comments
Open

How to set systemProperty ? #1089

harideva16 opened this issue Aug 15, 2021 · 0 comments

Comments

@harideva16
Copy link

usually I set jni library path like this.

I want to build JPackage for windows , linux and Mac with github actions.

But, I didn't know about how to set system Property in gradle for all the three following os?

  • Windows
  • Linux
  • Mac

How can I set systemProperty java.library.path ?

I followed this answer

I added the following code in gradle.build file to set systemProperty.

task local {
    run {  systemProperty "java.library.path", file("${project(":hello").buildDir}/lib/main/debug").absolutePath }
}

bootRun.mustRunAfter local

But , it not worked.

I followed this project to implement JNI . I searched in internet about how to set system properties for java.library.path in gradle . But , no answer found.

I also asked a question in stackoverflow But , no response.

so, please help me !!!

If I run it comes an error like this java.lang.UnsatisfiedLinkError: no hello in java.library.path.

Can you give any documents or reference about it ?

How can I set systemProperty java.library.path in gradle.build file ?

Give a answer!!!!

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

1 participant