Skip to content

Crash on JVM/Desktop #77

@tylerwilson

Description

@tylerwilson

I have been using KotlinCrytpo 0.7.0 without issue on Android and iOS. I recently added the JVM (desktop) target, and I get a crash when trying to sign my HTTP request. It looks like so:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/kotlincrypto/hash/sha1/SHA1 at org.kotlincrypto.macs.hmac.sha1.HmacSHA1.<init>(HmacSHA1.kt:37)

If I replace it with a pure Java version, it works okay. And I admit it might be a JVM set up issue, but unsure why that might be. I am using the JetBrains Java runtime v21.

Curious if anybody else has seen this issue, and how I might fix it. Or maybe it is an issue in the packaging of this library. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions