Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8275778

Problem with JavaFX and Apple M1 (Silicon) Chip

XMLWordPrintable

    • aarch64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      MacBook Pro with Apple M1 chip, macOS 11.6, Java 17 2021-09-14 LTS, Eclipse.

      A DESCRIPTION OF THE PROBLEM :
      Executing a simple JavaFX Hello World app from within Eclipse (right-click class App / Run As / Java Application) on a laptop with an Apple M1 (Silicon) chip yields a java.lang.UnsatisfiedLinkError. The cause are shared libraries not matching the Apple M1 (Silicon) chip architecture:
      /path_to/.openjfx/cache/17.0.0.1/libprism_es2.dylib: mach-o, but wrong architecture
      ...

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See: https://stackoverflow.com/questions/69573853/problem-with-javafx-and-apple-m1-silicon-chip

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A simple Hello World window appearing on the screen.

      ---------- BEGIN SOURCE ----------
      See: https://stackoverflow.com/questions/69573853/problem-with-javafx-and-apple-m1-silicon-chip
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None found so far for MacBook Pro with Apple M1 chip, macOS 11.6, Java 17 2021-09-14 LTS, Eclipse.

            jvos Johan Vos
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: