Vatuu / discord-rpc

Java Wrapper of the Discord-RPC Library for Discord Rich Presence.
MIT License
192 stars 42 forks source link

(macOS) dylib load error #5

Closed DigiEggz closed 6 years ago

DigiEggz commented 6 years ago

After importing the library, when I try to run my app I get the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc': dlopen(libdiscord-rpc.dylib, 9): image not found at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236) at com.sun.jna.Library$Handler.<init>(Library.java:140) at com.sun.jna.Native.loadLibrary(Native.java:379) at com.sun.jna.Native.loadLibrary(Native.java:364) at net.arikia.dev.drpc.DiscordRPC$DLL.<clinit>(DiscordRPC.java:114) at net.arikia.dev.drpc.DiscordRPC.discordInitialize(DiscordRPC.java:33) at com.relic.sfs2x.Relic.init(Relic.java:65) at com.smartfoxserver.v2.entities.managers.SFSExtensionManager.createExtension(SFSExtensionManager.java:303) at com.smartfoxserver.v2.entities.managers.SFSZoneManager.createRoom(SFSZoneManager.java:719) at com.smartfoxserver.v2.entities.managers.SFSZoneManager.createZone(SFSZoneManager.java:412) at com.smartfoxserver.v2.entities.managers.SFSZoneManager.initializeZones(SFSZoneManager.java:239) at com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:292) at com.smartfoxserver.v2.Main.main(Main.java:14)

I'm running 10.13.3 Beta. Is there another way I can include the rpc binaries? Nothing I try seems to behave.

bddvlpr commented 6 years ago

Closed the issue but didn't put an answer? Still looking for an answer.

Vatuu commented 6 years ago

@StijnSimons 1. The issue wasn't closed by me, but the author.

  1. This issue was related to an outdated version of the library, when you have problems, make sure to use the latest version.
bddvlpr commented 6 years ago

@Vatuu I'm using the 1.4.2 version right now on maven, so that shouldn't be a problem.