# A practical look at JEP-412 in JDK17 with libsodium

DevFeed: [A practical look at JEP-412 in JDK17 with libsodium](<https://devfeed.tech/articles/a-practical-look-at-jep-412-in-jdk17-with-libsodium-26083.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/2021/09/04/a-practical-look-at-jep-412-in-jdk17-with-libsodium/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2021-09-04T15:38:06Z

Content type: tutorial

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [modules](<https://devfeed.tech/topics/modules.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [homebrew](<https://devfeed.tech/tags/homebrew.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [modules](<https://devfeed.tech/tags/modules.md>)

## AI overview

A practical tutorial on using JEP-412's incubating Foreign Linker API in JDK 17 to call the native libsodium library from Java. It covers experimentation in jshell, module and native-access options, symbol lookup, and Gradle configuration.

## Source excerpt

JDK 17 is coming and with the incubating JEP-412, let's have a practical look at this API that should supersede JNI.