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

Add example using JNI #3321

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Add example using JNI #3321

merged 5 commits into from
Jul 30, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jul 30, 2024

No description provided.

@sequencer
Copy link
Contributor


// Auto-generate JNI `.h` files from Java classes using Javac
def nativeHeaders = T {
os.proc("javac", "-h", T.dest, "-d", T.dest.toString, allSourceFiles().map(_.path)).call()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have Jvm.jdkTool, which tries to look up the tool in the currently used JRE/JDK.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll use that

@lihaoyi lihaoyi merged commit 625b91b into com-lihaoyi:main Jul 30, 2024
34 of 39 checks passed
@lefou lefou added this to the 0.11.11 milestone Jul 30, 2024
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

Successfully merging this pull request may close these issues.

3 participants