jonnyzzz / kotlin-jni-mix

JNI implemented in Kotlin/Native, called from Kotlin/JVM

Home Page:https://jonnyzzz.com/blog/2019/12/15/jni-kotlin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading Kotlin/Native binary as JNI library

The idea of that project is to experiment with both JVM (11 in my case) and Kotlin/Native.

What we do

  • we run Java application
  • we build shared library with Kotlin/Native to implement JNI contracts
  • we load Kotlin/Native library into JVM application

Hack with pleasure!

License

MIT, see the LICENSE file in the repository

Building and Running

Execute ./gradlew build task. Fix path to the library in Java sources. Start Java application

About

JNI implemented in Kotlin/Native, called from Kotlin/JVM

https://jonnyzzz.com/blog/2019/12/15/jni-kotlin/

License:MIT License


Languages

Language:Kotlin 100.0%