Coder Social home page Coder Social logo

UnsatisfiedLinkError on startup about jda HOT 8 CLOSED

AjaxGb avatar AjaxGb commented on May 12, 2024
UnsatisfiedLinkError on startup

from jda.

Comments (8)

AjaxGb avatar AjaxGb commented on May 12, 2024

Jeez, thanks @kantenkugel. My bad.

from jda.

kantenkugel avatar kantenkugel commented on May 12, 2024

Here are a few things that are worth trying:

  • Check if another version of JDA is running on the PC currently (The error says that the opus-file can not be used as another program blocks it).and try it with them closed.
  • Try deleting the opus*.dll file before launching the bot
  • Make sure that JDA is properly put inside of your Jar-file (open the .jar file with any gzip program an check if the opus directory exists as well as the net/dv8tion/jda one)

Please let us know, if you could find out anything new with the given suggestions.
I am also interested in how exactly you are including JDA into your project. gradle/maven, download from build-server or adding the JDA source?

from jda.

kantenkugel avatar kantenkugel commented on May 12, 2024

By the way: i wish you luck with receiving audio... we didn't test that at all yet (yes, there are packets incoming, but we didn't check if it is easy to use or to play back). Receiving audio is not even really alpha. We are still working on finalizing the sending part (for 1.3.0 release)

from jda.

kantenkugel avatar kantenkugel commented on May 12, 2024

And... oh wow... i didn't know that we are polluting the temp-folder with all those opus.dll files

from jda.

AjaxGb avatar AjaxGb commented on May 12, 2024

@kantenkugel

  • There are no other versions of JDA running.
  • I checked, the file seems to be deleted after the program crashes. In any case, I couldn't find any by the names given in the error message. Plenty of other opusXXXXX... files, though. Deleting them has no effect.
  • The jar I'm working with now looks like this.

I've tried the first two of those methods. Haven't tried compiling from source.

from jda.

kantenkugel avatar kantenkugel commented on May 12, 2024

No, you should not compile from source :) I was just asking to know if you did, cuz that could be a cause of error.
I am really confused, on why this happens... Each instance of JDA should create its own dll-file in the temp-folder to load as library. The docs of the used methods tell us that that file is unique... and we only access it once to load it.

So somehow JDA locks itself out from the created temp-file (the code closes the output-stream to the file, but maybe it's not free again)... It is either that (we are still using it somehow before the read-attempt), or the .jar-file somehow loses permissions for the file. We will have to test this problem a little bit. This did not occur for anyone else yet, so it's gonna be hard to figure out.

If you find out anything new before we do, please let us know.
Also feel free to join our channel in the Discord API Guild (invite in README-file), to have a better chat

from jda.

DV8FromTheWorld avatar DV8FromTheWorld commented on May 12, 2024

@AjaxGb JDA v1.3.0 has been released. Please try it and see if this problem still exists.
https://github.com/DV8FromTheWorld/JDA/releases/tag/v1.3.0

from jda.

AjaxGb avatar AjaxGb commented on May 12, 2024

Yeah, it's working now! Thanks!

from jda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.