MinnDevelopment / java-discord-rpc

Java bindings for https://github.com/discordapp/discord-rpc (using JNA)
Apache License 2.0
132 stars 38 forks source link

java.lang.UnsatisfiedLinkError: shadow.com.sun.jna.Native.getNativeVersion()Ljava/lang/String; #12

Closed redslime closed 6 years ago

redslime commented 6 years ago
Caught exception from mcctfdiscordhook java.lang.UnsatisfiedLinkError: shadow.com.sun.jna.Native.getNativeVersion()Ljava/lang/String;
    at shadow.com.sun.jna.Native.getNativeVersion(Native Method)
    at shadow.com.sun.jna.Native.<clinit>(Native.java:192)
    at shadow.club.minnced.discord.rpc.DiscordRPC.<clinit>(DiscordRPC.java:42)
    at main.java.redsli.me.mcctfdiscordhook.runnables.DiscordPresenceUpdater.<init>(DiscordPresenceUpdater.java:21)

Line 21: lib = DiscordRPC.INSTANCE;

I'm shadowing the jar with this gradle plugin, not sure if relevant or not.

MinnDevelopment commented 6 years ago

Is there a reason to relocate jna or this library?

redslime commented 6 years ago

I tried not shadowing/relocating the library, problem persists.

MinnDevelopment commented 6 years ago

This sounds more like an issue with the JNA version you're using.