Comments (8)
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:
- Right click on the "JRE System Library" of your project, and click "Build Path" -> "Configure Build Path".
- Include the native libraries to your project in the Build Path Configurer by clicking the "Native library location" which can be seen in the JRE System Library dropdown menu.
- Click on "Edit...", which will be the only button clickable in that general area.
- A file explorer will pop up. Navigate to the location of your RPC native folder and include the folder named [Your OS here].
For IntelliJ:
- We add the needed jar files by going to File -> Project Structure:
- In the Modules page, in the Dependencies tab, click on the green plus symbol and choose "JARs or directories":
- Navigate to and select the JARs for your OS
Hopefully this works for you. Please let me know if you continue to experience this issue!
from java-discord-rpc.
Same error, it is in the dependencies tho.
from java-discord-rpc.
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.
from java-discord-rpc.
Tried that. Same error.
from java-discord-rpc.
Just opened an old project using java-discord-rpc.
For some reason this works, even though everything is the same.
from java-discord-rpc.
For some reason, adding
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.5.1</version>
</dependency>
fixxed this.
from java-discord-rpc.
Yep, this library depends on JNA, so not having it would definitely cause some issues.
Glad you were able to figure it out!
from java-discord-rpc.
It did have the dependency, it was just an older version.
from java-discord-rpc.
Related Issues (20)
- Module not found HOT 6
- [Request/Help] Function to check if an Image Exists? HOT 3
- [Error/Bug] MacOS Error Loading dll (Code Signature Invalid) HOT 5
- Problem HOT 3
- Handlers not being triggered HOT 7
- Unable to load library 'discord-rpc': The specified module could not be found. HOT 15
- Imposible to use it in a minecraft mod HOT 6
- Error in LSRegisterURL: -10811 HOT 1
- This is not issue, but question HOT 1
- How to reset StartTimestamp and EndTimestamp presences? HOT 1
- jcenter returning 502 HOT 1
- UnsatisfiedLinkError on release jar HOT 7
- How to utilize Discord_Initialize() to connect to second local instance of Discord HOT 4
- Deprecation of the official Discord SDK for RPC HOT 1
- Unable to load library 'discord-rpc' Minecraft 1.8.8 MCP Error HOT 2
- This is less of an issue and more of something i want to know HOT 1
- About secret HOT 2
- Error in LSRegisterURL: -10811 HOT 1
- java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc' HOT 1
- Suggestion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-discord-rpc.