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

Java bindings #147

Merged
merged 1 commit into from
Feb 18, 2024
Merged

Java bindings #147

merged 1 commit into from
Feb 18, 2024

Conversation

unexge
Copy link
Contributor

@unexge unexge commented Feb 17, 2024

Part of #126.

Java bindings for Regorus using jni-rs. I adapted some build scripts from OpenDAL's Java bindings.

I'll send follow-up PRs to set up publishing to Maven Central.


and run it with:
```shell
$ java -cp target/regorus-java-0.0.1.jar:target/regorus-java-0.0.1-osx-aarch_64.jar Test.java
Copy link
Collaborator

Choose a reason for hiding this comment

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

For my own understanding, can java not figure out the osx-aarch_64.jar portion automatically?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think not, it should be in the classpath somehow. I'm also not a Java expert and unsure if that's the optimal structure. Ideally, we should just have one fat JAR that contains everything but I'll need to research a bit and find the optimal structure. I'll work on it in the follow-up PRs.

Copy link
Collaborator

@anakrish anakrish left a comment

Choose a reason for hiding this comment

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

Great work! Thanks for your contribution!

@anakrish anakrish merged commit bdb2aba into microsoft:main Feb 18, 2024
4 checks passed
@unexge unexge deleted the java-bindings branch February 18, 2024 22:13
@unexge unexge mentioned this pull request Feb 21, 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.

2 participants