Giter Club home page Giter Club logo

Comments (8)

m-sterling avatar m-sterling commented on July 19, 2024

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.

bddvlpr avatar bddvlpr commented on July 19, 2024

Same error, it is in the dependencies tho.
image

from java-discord-rpc.

m-sterling avatar m-sterling commented on July 19, 2024

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.

bddvlpr avatar bddvlpr commented on July 19, 2024

Tried that. Same error.

from java-discord-rpc.

bddvlpr avatar bddvlpr commented on July 19, 2024

Just opened an old project using java-discord-rpc.
For some reason this works, even though everything is the same.

from java-discord-rpc.

bddvlpr avatar bddvlpr commented on July 19, 2024

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.

m-sterling avatar m-sterling commented on July 19, 2024

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.

bddvlpr avatar bddvlpr commented on July 19, 2024

It did have the dependency, it was just an older version.

from java-discord-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.