Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Mac lib not found #12

Closed
bddvlpr opened this issue Apr 9, 2018 · 24 comments
Closed

Mac lib not found #12

bddvlpr opened this issue Apr 9, 2018 · 24 comments
Assignees
Labels

Comments

@bddvlpr
Copy link

bddvlpr commented Apr 9, 2018

As seen in #5 , i'm still getting that same error, even using the latest discord and discord-rpc version.
I'm using maven by the way.

@Vatuu
Copy link
Owner

Vatuu commented Apr 13, 2018

Try to update to the latest version https://github.com/Vatuu/discord-rpc/releases/tag/1.4.3. When the issue still persists, please report it here.

@bddvlpr
Copy link
Author

bddvlpr commented Apr 14, 2018

Thanks for helping, will try out https://github.com/Vatuu/discord-rpc/releases/tag/1.4.3 in a bit.

@bddvlpr
Copy link
Author

bddvlpr commented Apr 14, 2018

Issue still exists.
Stacktrace:
java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc': Native library (darwin/libdiscord-rpc.dylib) not found in resource path ([file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/charsets.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/deploy.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/cldrdata.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/dnsns.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/jaccess.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/jfxrt.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/localedata.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/nashorn.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunec.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/ext/zipfs.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/javaws.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jce.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jfr.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jfxswt.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/jsse.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/management-agent.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/plugin.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/resources.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre/lib/rt.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/ant-javafx.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/dt.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/javafx-mx.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/jconsole.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/packager.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/sa-jdi.jar, file:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/lib/tools.jar, file:/Users/stimons/Desktop/Java/Lunix/Lunix-1.12.2/target/classes/, file:/Users/stimons/.m2/repository/org/lwjgl/lwjgl/lwjgl_util/2.9.2/lwjgl_util-2.9.2.jar, file:/Users/stimons/.m2/repository/org/lwjgl/lwjgl/lwjgl/2.9.2/lwjgl-2.9.2.jar, file:/Users/stimons/.m2/repository/org/lwjgl/lwjgl/lwjgl-platform/2.9.2/lwjgl-platform-2.9.2-natives-windows.jar, file:/Users/stimons/.m2/repository/org/lwjgl/lwjgl/lwjgl-platform/2.9.2/lwjgl-platform-2.9.2-natives-linux.jar, file:/Users/stimons/.m2/repository/org/lwjgl/lwjgl/lwjgl-platform/2.9.2/lwjgl-platform-2.9.2-natives-osx.jar, file:/Users/stimons/.m2/repository/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar, file:/Users/stimons/.m2/repository/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar, file:/Users/stimons/.m2/repository/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar, file:/Users/stimons/.m2/repository/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar, file:/Users/stimons/.m2/repository/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar, file:/Users/stimons/.m2/repository/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0.jar, file:/Users/stimons/.m2/repository/org/apache/commons/commons-lang3/3.6/commons-lang3-3.6.jar, file:/Users/stimons/.m2/repository/io/netty/netty-all/4.1.9.Final/netty-all-4.1.9.Final.jar, file:/Users/stimons/.m2/repository/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar, file:/Users/stimons/.m2/repository/net/sf/jopt-simple/jopt-simple/4.7/jopt-simple-4.7.jar, file:/Users/stimons/.m2/repository/com/ibm/icu/icu4j/59.1/icu4j-59.1.jar, file:/Users/stimons/.m2/repository/com/google/code/gson/gson/2.8.1/gson-2.8.1.jar, file:/Users/stimons/.m2/repository/com/mojang/authlib/1.5.25/authlib-1.5.25.jar, file:/Users/stimons/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, file:/Users/stimons/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar, file:/Users/stimons/.m2/repository/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar, file:/Users/stimons/.m2/repository/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar, file:/Users/stimons/.m2/repository/com/google/guava/guava/21.0/guava-21.0.jar, file:/Users/stimons/.m2/repository/com/mojang/realms/1.10.17/realms-1.10.17.jar, file:/Users/stimons/.m2/repository/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar, file:/Users/stimons/.m2/repository/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar, file:/Users/stimons/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar, file:/Users/stimons/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar, file:/Users/stimons/.m2/repository/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar, file:/Users/stimons/.m2/repository/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar, file:/Users/stimons/.m2/repository/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar, file:/Users/stimons/.m2/repository/com/paulscode/codecwav/20101023/codecwav-20101023.jar, file:/Users/stimons/.m2/repository/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch/6.5/twitch-6.5.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch-platform/6.5/twitch-platform-6.5-natives-windows-32.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch-platform/6.5/twitch-platform-6.5-natives-windows-64.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch-platform/6.5/twitch-platform-6.5-natives-osx.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch-external-platform/4.5/twitch-external-platform-4.5-natives-windows-32.jar, file:/Users/stimons/.m2/repository/tv/twitch/twitch-external-platform/4.5/twitch-external-platform-4.5-natives-windows-64.jar, file:/Users/stimons/.m2/repository/oshi-project/oshi-core/1.1/oshi-core-1.1.jar, file:/Users/stimons/.m2/repository/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar, file:/Users/stimons/.m2/repository/it/unimi/dsi/fastutil/7.1.0/fastutil-7.1.0.jar, file:/Users/stimons/.m2/repository/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar, file:/Users/stimons/.m2/repository/com/mojang/patchy/1.1/patchy-1.1.jar, file:/Users/stimons/.m2/repository/net/java/dev/jna/jna/4.0.0/jna-4.0.0.jar, file:/Users/stimons/.m2/repository/javax/vecmath/vecmath/1.5.2/vecmath-1.5.2.jar, file:/Users/stimons/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar, file:/Users/stimons/.m2/repository/org/slick2d/slick2d-core/1.0.2/slick2d-core-1.0.2.jar, file:/Users/stimons/.m2/repository/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar, file:/Users/stimons/.m2/repository/org/json/json/20180130/json-20180130.jar, file:/Users/stimons/.m2/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar, file:/Users/stimons/.m2/repository/org/javassist/javassist/3.19.0-GA/javassist-3.19.0-GA.jar, file:/Users/stimons/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar, file:/Users/stimons/.m2/repository/xyz/baddeveloper/yam/yamlconfig/1.0.0/yamlconfig-1.0.0.jar, file:/Users/stimons/.m2/repository/javassist/javassist/3.12.1.GA/javassist-3.12.1.GA.jar, file:/Users/stimons/.m2/repository/com/github/Vatuu/discord-rpc/1.4.3/discord-rpc-1.4.3.jar, file:/Users/stimons/Library/Application%20Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/181.4203.550/IntelliJ%20IDEA.app/Contents/lib/idea_rt.jar])

@Vatuu
Copy link
Owner

Vatuu commented Apr 14, 2018

Please check your temp directory. Is a folder being created called discord-rpc containing the apropriate DLL/SO/DYNLIB?

@bddvlpr
Copy link
Author

bddvlpr commented Apr 15, 2018

image
It has the folder, but nothing inside of it

@bddvlpr
Copy link
Author

bddvlpr commented Apr 22, 2018

bump?

@Vatuu
Copy link
Owner

Vatuu commented Apr 22, 2018 via email

@bddvlpr
Copy link
Author

bddvlpr commented Apr 22, 2018

Oh, maybe its a problem with my pom?

@s5bug
Copy link

s5bug commented Apr 24, 2018

As far as I can tell, it is an issue with the lib being osx/discord-rpc.dylib and not darwin/libdiscord-rpc.dylib.

@bddvlpr
Copy link
Author

bddvlpr commented Apr 25, 2018

Not really, as it isn't even downloading them.

@Vatuu
Copy link
Owner

Vatuu commented Apr 25, 2018

If there's any linux user here, I'd ask them to try and run it too, and see if it works.

Right now, it seems like it's a issue with the macOS operating system and it's "nothing else but apple >:c" policy.

@bddvlpr
Copy link
Author

bddvlpr commented Apr 26, 2018

Well, now that i've pulled (because of the pr someone sent), its a different stacktrace.
DiscordRPC.discordInitialize("idhere", handler, true);
now results in

Caused by: java.lang.NullPointerException
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792)
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769)
	at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744)
	at net.arikia.dev.drpc.DiscordRPC.loadDLL(DiscordRPC.java:149)
	at net.arikia.dev.drpc.DiscordRPC.<clinit>(DiscordRPC.java:21)
	... 5 more

@s5bug
Copy link

s5bug commented Apr 26, 2018 via email

@DeJayDev
Copy link
Collaborator

Hey, @stijnsimons. A PR for that problem will go out when I'm home, I know the fix already and I'm not feeling brave enough to code on my phone.

@bddvlpr
Copy link
Author

bddvlpr commented Apr 28, 2018

@DeJayDevelopment Thanks! Hope it works after.

@DeJayDev DeJayDev added the bug label Apr 30, 2018
@DeJayDev DeJayDev self-assigned this Apr 30, 2018
@DeJayDev
Copy link
Collaborator

Hey! We're getting in contact with some Discord Staff to help us triage the issue. We'll keep you posted.

@OzairP
Copy link

OzairP commented May 8, 2018

I'm not in the IntelliJ plugin area at all, so forgive my ignorance but shouldn't it be darwin/lib/discord-rpc.dylib? Right now it's darwin/libdiscord-rpc.dylib

java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc': Native library (darwin/libdiscord-rpc.dylib) not found in resource path

@s5bug
Copy link

s5bug commented May 8, 2018 via email

@OzairP
Copy link

OzairP commented May 8, 2018

Ah okay, it was a shot in the dark since I saw lib/ dir. Hope this gets fixed soon, need to brag how much I work on Discord.

@DeJayDev
Copy link
Collaborator

Hi,

I thought I'd provide a state of the situation here. discord/discord-rpc#170

We're still working on a resolution but we believe the issue is something very much out of our hands, and will do whatever we have to so it is okay.

@DeJayDev
Copy link
Collaborator

DeJayDev commented Feb 1, 2019

I haven't forgotten about this issue!

I recently got a MacBook Air and am investigating what can be one on either our library or discordapp/discord-rpc's side.

For a little bit more insight see my response to discordapp/discord-rpc#170.

Edit: A link to the comment.

@razod
Copy link

razod commented Apr 22, 2020

I know this is quite a late response, but I was wondering, is there any fix for this yet?

@alterie
Copy link

alterie commented May 13, 2021

any updates?

@bddvlpr bddvlpr closed this as completed Sep 2, 2021
@alterie
Copy link

alterie commented Sep 3, 2021

Although I couldn't seem to find any fixes for this, I did find some alternatives.

There's the Discord Game SDK bindings for java and jagrosh's Discord IPC; both of which seem to work find on mac.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants