Closed bddvlpr closed 6 years ago
Hi StijnSimons,
The natives are not found in this repository. They're found in the MinnDevelopment/discord-rpc-release repo. Once you add that repo to your Maven dependencies, you need to add the natives directory to your buildpath.
(This is taken from this SO page and this wiki page which explain how to add the natives for LWJGL; the process is exactly the same for the RPC natives)
For Eclipse:
For IntelliJ:
Hopefully this works for you. Please let me know if you continue to experience this issue!
Same error, it is in the dependencies tho.
Just because it's in the dependencies doesn't mean it's included in the build path. Maven is intended for use with JAR files, not the RPC resources. Using Maven for them works for auto-updating to the latest version of them and such, but you still need to follow the above instructions to include them in your build path.
Tried that. Same error.
Just opened an old project using java-discord-rpc. For some reason this works, even though everything is the same.
For some reason, adding
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.1</version>
</dependency>
fixxed this.
Yep, this library depends on JNA, so not having it would definitely cause some issues.
Glad you were able to figure it out!
It did have the dependency, it was just an older version.
I've setup this project using Maven and it worked before but now it stopped detecting the natives, i've tried reinstalling them in the correct folder but it still gives an exception.