-
how to embed native library (dll) to the mod jar
any ideas?
-
how to embed native library (dll) to the mod jar
Unfortunately, I can't avoid using it BTW this native library has many versions that made it can be runned on every platform.
-
how to embed native library (dll) to the mod jar
of course you can ask, this mod is an addon to mrcrayfish device mod and this mod adds some apps to it and the native library is related to music ID app ( something like Shazam using ACRcloud ).
-
how to embed native library (dll) to the mod jar
this is the library that needs the dll (also the dll in the repo): https://github.com/acrcloud/acrcloud_sdk_java how i added the lib : as the tutorial that in the repo but in IntelliJ IDEA What have you done to troubleshoot so far?: i tried many things like adding the dll in natives folder in jar Some code?: this library https://github.com/acrcloud/acrcloud_sdk_java that is using the dll not my code
-
how to embed native library (dll) to the mod jar
I'm making a mod that needs an native dll library so I set it's path in Intellij IDEA in library settings but when I built the mod and run it in the game i got this error: Description: Updating screen events java.lang.UnsatisfiedLinkError: no acrcloud_extr_tool in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.acrcloud.utils.ACRCloudExtrTool.<clinit>(ACRCloudExtrTool.java:55) at com.acrcloud.utils.ACRCloudRecognizer.recognizeByFile(ACRCloudRecognizer.java:179) at com.acrcloud.utils.ACRCloudRecognizer.recognizeByFile(ACRCloudRecognizer.java:168) at com.ahmed605.shazamine.app.ShazaMineApp.lambda$init$0(ShazaMineApp.java:137) at com.ahmed605.shazamine.app.ShazaMineApp$$Lambda$230/1486003379.onClick(Unknown Source) at com.mrcrayfish.device.api.app.component.Button.handleMouseClick(Button.java:278) at com.mrcrayfish.device.api.app.Layout.handleMouseClick(Layout.java:238) at com.mrcrayfish.device.api.app.Application.handleMouseClick(Application.java:162) at com.mrcrayfish.device.core.Window.handleMouseClick(Window.java:204) at com.mrcrayfish.device.core.Laptop.func_73864_a(Laptop.java:323) at net.minecraft.client.gui.GuiScreen.func_146274_d(GuiScreen.java:533) at com.mrcrayfish.device.core.Laptop.func_146274_d(Laptop.java:444) at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:501) at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1757) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1096) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Note: The game (and mod) worked perfectly when running runClient task in the IDE before build
IPS spam blocked by CleanTalk.