This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/examples/bindings/java/README.md

14 lines
478 B
Markdown
Raw Normal View History

2017-10-16 13:10:20 -07:00
## ZeroTier with Java via JNI
***
2017-05-04 13:06:39 -07:00
2017-10-16 13:10:20 -07:00
To get this example project to work, do the following:
2017-05-05 16:46:07 -07:00
2017-10-16 13:10:20 -07:00
- From libzt main directory, build shared library: `make shared_jni_lib`
- Copy the resultant dynamic library (`*.so` or `*.dylib`) from `build/` to this current directory
- Change to this directory and `make example_java_app`
- Run: `java -cp "." ExampleApp`
Notes:
Upon execution, it will load the libzt dynamic library via the `loadLibrary` method and begin generating an identity.