Added untested Scala binding

This commit is contained in:
Joseph Henry
2017-10-16 13:40:05 -07:00
parent 5de02d3259
commit 7c04472b68
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
## ZeroTier with Scala via JNI
***
To get this example project to work, do the following:
- 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_scala_app`
- Run: `scala -cp "." ExampleApp`
Notes:
Upon execution, it will load the libzt dynamic library via the `loadLibrary` method and begin generating an identity.