Jump to content

Recommended Posts

Posted (edited)

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

Edited by Ahmed Walid
error in typo
Posted

You might want to supply some more specifics if you want an answer

1. What DLL are you trying to load? (and why?)

2. In what manner did you add the library (screen shot?)

3. What have you done to troubleshoot so far?

4. Some code?

Posted (edited)
  On 7/2/2019 at 12:30 AM, PhilipChonacky said:

You might want to supply some more specifics if you want an answer

1. What DLL are you trying to load? (and why?)

2. In what manner did you add the library (screen shot?)

3. What have you done to troubleshoot so far?

4. Some code?

Expand  

this is the library that needs the dll (also the dll in the repo): https://github.com/acrcloud/acrcloud_sdk_java

  Quote
no acrcloud_extr_tool in java.library.path
Expand  

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

Edited by Ahmed Walid
Posted

If you can avoid using a native library, do. The entire point of Java is to run on anything and not be constrained to a single platform.

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

What does your mod do, if I may ask?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)
  On 7/2/2019 at 4:42 AM, DaemonUmbra said:

What does your mod do, if I may ask?

Expand  

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 ).

Edited by Ahmed Walid
Posted (edited)
  On 7/2/2019 at 3:30 AM, Cadiboo said:

If you can avoid using a native library, do. The entire point of Java is to run on anything and not be constrained to a single platform.

Expand  

Unfortunately, I can't avoid using it BTW this native library has many versions that made it can be runned on every platform. 

Edited by Ahmed Walid

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.