Add JNA issue fix in documentation

This commit is contained in:
thunderbiscuit 2022-12-14 14:43:39 -05:00
parent 05aa7157df
commit 9ae938ca8c
No known key found for this signature in database
GPG Key ID: 88253696EB836462
2 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -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