Giter Club home page Giter Club logo

Comments (3)

merttoka avatar merttoka commented on May 30, 2024 1

I don't have access to a machine with Apple silicon, but ChatGPT gave the following response based on your error messages (4th option might be the most helpful):

"The error you're seeing is an UnsatisfiedLinkError, which indicates that the Java Virtual Machine (JVM) can't find a native library it needs to run your Java application. Specifically, it's trying to load a dynamic link library (.dylib) which is not present or not compatible.

Considering the details provided and the fact that this is happening on Apple silicon (presumably the M1 chip or its successors), here are a few general steps and considerations to resolve the issue:

  1. Native Library Compatibility: Ensure that the native library (libgluegen_rt.dylib in this case) is compatible with Apple silicon. Many native libraries were initially built for Intel-based Macs, and they might not work out-of-the-box on Apple's new ARM-based architecture.

  2. Java Version: Ensure you're using a version of Java that's compatible with Apple silicon. The provided information shows you're using Java 17, which should have support. However, make sure you downloaded the ARM64 version and not the x86_64 version. You might consider using a distribution like AdoptOpenJDK or Zulu which provides explicit ARM64 builds.

  3. JAVA_LIBRARY_PATH: You might need to set the JAVA_LIBRARY_PATH environment variable to point to the directory containing the .dylib files your application needs.

    export JAVA_LIBRARY_PATH=/path/to/your/dylib/directory
    

    After setting this, try rerunning your Java application.

  4. Use Rosetta: As a temporary solution, you can use Apple's Rosetta 2 to run your application under x86_64 emulation. This might have performance penalties, but it can be a helpful stopgap solution until native libraries are updated. You can start a terminal under Rosetta by opening Terminal, navigating to Applications > Utilities, duplicating the Terminal app, and then right-clicking on the duplicate and selecting "Get Info" and then "Open using Rosetta". Then, run your Java application from that terminal instance.

  5. Recompile Native Libraries: If you have access to the source code of the native libraries, you might need to recompile them for Apple silicon."

from dynamovis.

sonofahutmaker avatar sonofahutmaker commented on May 30, 2024

Hey @cachatj, I'm running DynamoVis on Apple silicon and it's working fine for me with the same command. Were you able to resolve or are you still facing this?

from dynamovis.

cachatj avatar cachatj commented on May 30, 2024

from dynamovis.

Related Issues (12)

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.