Call Scala Native from Java using FFM Demonstration project for my blog post. I have the same setup in SBT form as well. Uses Scala CLI. Run with make run. Other commands will require both jextract and sn-bindgen to be installed.