Canton demo on Apple silicon: recommended JDK for the tutorial

When running the Canton demo on an M1/M2 Mac, you may get this message:
“On Apple Silicon, you need to run the demo with a JDK that natively includes JavaFX. You can download it from here: Java Download | Java 7, Java 8, Java 11, Java 13, Java 15, Java 17, Java 19 - Linux, Windows & macOS

An easy way to install the suggested Azul Zulu JDK on Apple silicon Macs is to:

  • download the .dmg from here.
  • edit your zsh profile (w/ VS code): code ~/.zprofile
  • add or edit the line to point JAVA_HOME to the Zulu JDK: export JAVA_HOME="/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home"
1 Like

If you’re the type of person who likes their uninstallers managed, you can also install with Homebrew:

brew install --cask zulu11