2009scape / Singleplayer-Edition-Windows

2009scape singleplayer build for Windows.
https://2009scape.org/
45 stars 34 forks source link

Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc': #17

Open TwynOfTheHellsfire opened 2 years ago

TwynOfTheHellsfire commented 2 years ago

What is this? Error while running client application

Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc': Native library (win32-x86-64/discord-rpc.dll) not found in resource path (C:\Users\user\IdeaProjects\2009Scape\Client\build\classes\java\main;C:\Users\user\IdeaProjects\2009Scape\Client\build\classes\kotlin\main;C:\Users\user\IdeaProjects\2009Scape\Client\build\resources\main;C:\Users\user\IdeaProjects\2009Scape\Client\libs\clientlibs.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk8\1.4.10\998caa30623f73223194a8b657abd2baec4880ea\kotlin-stdlib-jdk8-1.4.10.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\com.github.Vatuu\discord-rpc\1f829371af\c6d49518c9152a63a2b3d5d8e7b74874dfff4c14\discord-rpc-1f829371af.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\com.googlecode.json-simple\json-simple\1.1.1\c9ad4a0850ab676c5c64461a05ca524cdfff59f1\json-simple-1.1.1.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk7\1.4.10\30e46450b0bb3dbf43898d2f461be4a942784780\kotlin-stdlib-jdk7-1.4.10.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.4.10\ea29e063d2bbe695be13e9d044dcfb0c7add398e\kotlin-stdlib-1.4.10.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\junit\junit\4.10\e4f1766ce7404a08f45d859fb9c226fc9e41a861\junit-4.10.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-common\1.4.10\6229be3465805c99db1142ad75e6c6ddeac0b04c\kotlin-stdlib-common-1.4.10.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.jetbrains\annotations\13.0\919f0dfe192fb4e063e7dacadee7f8bb9a2672a9\annotations-13.0.jar;C:\Users\user\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-core\1.1\860340562250678d1a344907ac75754e259cdb14\hamcrest-core-1.1.jar)
    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:303)
    at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
    at com.sun.jna.Library$Handler.<init>(Library.java:179)
    at com.sun.jna.Native.loadLibrary(Native.java:569)
    at com.sun.jna.Native.loadLibrary(Native.java:544)
    at net.arikia.dev.drpc.DiscordRPC$DLL.<clinit>(DiscordRPC.java:222)
    at net.arikia.dev.drpc.DiscordRPC.discordInitialize(DiscordRPC.java:32)
    at org.runite.client.Discord.InitalizeDiscord(Discord.java:29)
    at org.runite.client.Client.method38(Client.java:149)
    at org.runite.client.GameShell.method37(GameShell.java:330)
    at org.runite.client.GameShell.run(GameShell.java:412)
    at java.base/java.lang.Thread.run(Thread.java:834)
Closing Discord hook.
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: Could not initialize class net.arikia.dev.drpc.DiscordRPC$DLL
    at net.arikia.dev.drpc.DiscordRPC.discordShutdown(DiscordRPC.java:84)
    at org.runite.client.Discord.lambda$InitalizeDiscord$0(Discord.java:22)
    at java.base/java.lang.Thread.run(Thread.java:834)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5s
4 actionable tasks: 1 executed, 3 up-to-date
9:40:52 AM: Task execution finished 'run'.
downthecrop commented 2 years ago

Learn about building from source on Windows here: https://gitlab.com/2009scape/2009scape/#windows

TwynOfTheHellsfire commented 2 years ago

Learn about building from source on Windows here: https://gitlab.com/2009scape/2009scape/#windows

How is this any help when that was the same exact guide I followed, I did everything correctly. I just need to know how to setup discord RPC please don't assume I don't know how to build a project because I asked for help,