This repository was archived by the owner on Apr 9, 2023. It is now read-only.

Description
I am not an expert on this, but here is my problem.
My app uses jna version 5.0.0.
Discord-rpc uses version 4.5.1
When running my app it loads the jna lib from the discord library making it crash with NoSuchMethodError.
The solution to the issue is the library using the shade plusgin as described here https://labs.spotify.com/2015/09/01/java-linking/ .
If I look into your maven pom.xml then I see you use that plug-in
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
So there should not be any problems but the classes are never the less normally included in the discord-rpc jar and i would expect them to be under net.arikia.dev path or something so my app does not load them as jna. I do admit I got not much of an idea of this shading plugin...
Maybe I will have a look into it, but would be cool if somebody of u could do it I have a really hard time reading into that shade-plugin docu.