If you’ve already installed adoptopenjdk8, uninstall it with brew uninstall adoptopenjdk8. Note: I’m hearing that openjdk-17.0.2 and adoptopenjdk-17.0.2 are both arm64 -compatible, so you can install those instead of Zulu’s if you want. Use sdkman or asdf to install Azul’s Zulu JDKĪzul has put out a nice Java JDK that works natively on the Apple M1 chip and is much faster. ![]() The problem is that, while this will work on an M1 Mac, it’ll run under Rosetta 2, which is sort of a translation layer for Intel-compiled binaries. (Previous versions of this article referenced adoptopenjdk8 ). Pretty much every “Installing React Native on Apple M1” guide out there contains these instructions: # (if you're lazy and not reading my article, # don't actually run this please) □ brew install -cask adoptopenjdk/openjdk/adoptopenjdk11 While we are still working on updates to our free React Native installation guide to include Apple M1-specific instructions, I figured it would be a good idea to put out this quick-hit article on how to set up your M1 Mac with the right Apple Silicon / arm64 compatible JDK. Please follow the official React Native installation instructions instead. ![]() ![]() NOTE: This article is no longer up to date. It was written Novemand updated February 23, 2022. Note that this article will likely age poorly as React Native & adoptopenjdk are upgraded. Speed testing my new 2021 M1 Max MacBook Pro (left) and 2019 Intel i9 MacBook Pro (right)
0 Comments
Leave a Reply. |