JnCrMx / discord-game-sdk4j

Java bindings for Discord's Game SDK
MIT License
122 stars 23 forks source link

It seemed to me that this would be better, because this is the only… #29

Closed Kiritron closed 3 years ago

Kiritron commented 3 years ago

…solution when my application started working with the Discord SDK without obvious errors.

JnCrMx commented 3 years ago

I think that issue might lie in the way you included this library into your project. Are you using Gradle or did you copy the files into your project directory?

Kiritron commented 3 years ago

Are you using Gradle or did you copy the files into your project directory?

I copied the source code of your product into my project.

JnCrMx commented 3 years ago

Ok, so the problem is probably that the folder you stored the native libraries in (native/) is not part of the class path.

I use the getResourceAsStream-Method which tired to find the resource anywhere in the class path. I prefer that, because it makes it possible to load resources from JAR files.

Please try to place the native/ inside your class path. This could for example be in the bin/ directory. If you need help with that, please tell me which IDE you are using.

Kiritron commented 3 years ago

Oh. My mistake. Excuse me. I guess I just didn't understand some things. In this case, your code will be the best solution. My bad.