radioegor146 / native-obfuscator

Java .class to .cpp converter for use with JNI
GNU General Public License v3.0
499 stars 67 forks source link

Failed to open lib file: /native0/x64-windows.dll #82

Open Stone-72 opened 2 months ago

Stone-72 commented 2 months ago

2024-07-07 12:10:59.085 [Nukkit] ERROR - Throwing java.lang.UnsatisfiedLinkError: Failed to open lib file: /native0/x64-windows.dll at native0.Loader.(synthetic:62) ~[?:?] at org.stone72.WasteAC.(WasteAC.java) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?] at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?] at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?] at java.lang.Class.newInstance(Class.java:645) ~[?:?] at cn.nukkit.plugin.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:28) ~[patched.jar:?] at cn.nukkit.plugin.PluginManager.loadPlugin(PluginManager.java:214) ~[patched.jar:?] at cn.nukkit.plugin.PluginManager.loadPlugins(PluginManager.java:174) ~[patched.jar:?] at cn.nukkit.plugin.PluginManager.loadPlugins(PluginManager.java:322) ~[patched.jar:?] at cn.nukkit.plugin.PluginManager.loadPlugins(PluginManager.java:241) ~[patched.jar:?] at cn.nukkit.plugin.PluginManager.loadPlugins(PluginManager.java:229) ~[patched.jar:?] at cn.nukkit.Server.(Server.java:147) ~[patched.jar:?] at cn.nukkit.Nukkit.main(Nukkit.java:21) ~[patched.jar:?] at nukkit.pm1e.launcher.Main.lambda$start$0(Main.java:71) ~[?:?] at java.lang.Thread.run(Thread.java:842) [?:?]

VitaminB8964 commented 2 months ago

Maybe,you didn't copy the dll file to xxx.jar/native0/

radioegor146 commented 2 months ago

I think that @VitaminB8964 may be right, although I'd like to see command line and output jar from obfuscator, if possible. You can send me them to any DM you'd like (https://re146.dev)