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

Build a cross-platform JAR from the Java bindings #200

Open
BudgieInWA opened this issue Feb 16, 2023 · 1 comment
Open

Build a cross-platform JAR from the Java bindings #200

BudgieInWA opened this issue Feb 16, 2023 · 1 comment

Comments

@BudgieInWA
Copy link
Collaborator

The Java bindings implemented in the osm2streets-java crate are functioning (see #68) and being used in the dev build of JOSM2Streets.

In order to distribute the JAR though, builds targetted for all the platforms we want to support need to be bundled, and the appropriate one needs to be chosen for extraction.

The Java class should probably try to load the library from the system paths first, so that individual users can select their own version of the library by placing it on the system path. This will be useful for faster iterating while developing osm2steets too.

@dabreegster
Copy link
Contributor

Haven't looked into it, but possibly useful new crate, and some of the comments are talking about how to do related things (like load the JNI lib at runtime): https://old.reddit.com/r/rust/comments/11no9eg/announcing_rustmavenplugin_compile_and_bundle/

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

2 participants