fabmax / physx-jni

Java JNI bindings for Nvidia PhysX
MIT License
85 stars 8 forks source link

Cyrillic letters issue #29

Closed haubna closed 1 year ago

haubna commented 2 years ago

Caused by cyrillic letters in the username

Caused by: java.lang.UnsatisfiedLinkError: C:\Users\?????? ?????\AppData\Local\Temp\de.fabmax.physx-jni\0.4.13\PhysX_64.dll: Can't find dependent libraries
--
  | at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
  | at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
  | at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
  | at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
  | at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2383)
  | at java.base/java.lang.Runtime.load0(Runtime.java:746)
  | at java.base/java.lang.System.load(System.java:1857)
  | at de.fabmax.physxjni.Loader.loadLibsFromResources(Loader.java:71)
  | at de.fabmax.physxjni.Loader.load(Loader.java:33)
  | ... 14 more
fabmax commented 2 years ago

This seems to be a Java bug: https://bugs.openjdk.java.net/browse/JDK-8195129

Maybe it could be a workaround to check the temp dir path for unicode characters and choose a different temp location if that is the case.