Vatuu / discord-rpc

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

System.load fails to load on Windows if path contains non-ascii characters #29

Open d6e opened 5 years ago

d6e commented 5 years ago

On Windows, dynamic libraries fail to load when users have non-ascii characters in their usernames. I looked into it and found the root cause. It appears System.load() does not accept non-ascii characters in the path. It appears to be a known issue: https://bugs.openjdk.java.net/browse/JDK-8195129

I've implemented a workaround by parametrizing the DLL path instead of defaulting to their home directory.