From 9ae938ca8c662399313ffdd7eab0460b91513b79 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Wed, 14 Dec 2022 14:43:39 -0500 Subject: [PATCH] Add JNA issue fix in documentation --- bdk-android/README.md | 13 +++++++++++++ bdk-jvm/README.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/bdk-android/README.md b/bdk-android/README.md index 95528b9..2e4b882 100644 --- a/bdk-android/README.md +++ b/bdk-android/README.md @@ -95,5 +95,18 @@ and use the `publishToMavenLocal` task without excluding the signing task: ./gradlew publishToMavenLocal ``` +## Known issues +Depending on the JVM version you use, you might not have the JNA dependency on your classpath. The exception thrown will be +```shell +class file for com.sun.jna.Pointer not found +``` +The solution is to add JNA as a dependency like so: +```kotlin +dependencies { + // ... + implementation("net.java.dev.jna:jna:5.12.1") +} +``` + [`bdk`]: https://github.com/bitcoindevkit/bdk [`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi diff --git a/bdk-jvm/README.md b/bdk-jvm/README.md index b6213e6..627fd6c 100644 --- a/bdk-jvm/README.md +++ b/bdk-jvm/README.md @@ -82,5 +82,18 @@ and use the `publishToMavenLocal` task without excluding the signing task: ./gradlew publishToMavenLocal ``` +## Known issues +Depending on the JVM version you use, you might not have the JNA dependency on your classpath. The exception thrown will be +```shell +class file for com.sun.jna.Pointer not found +``` +The solution is to add JNA as a dependency like so: +```kotlin +dependencies { + // ... + implementation("net.java.dev.jna:jna:5.12.1") +} +``` + [`bdk`]: https://github.com/bitcoindevkit/bdk [`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi