Search code examples
javaintellij-ideajava-8apple-m1

How to access Terminal Rosetta as a terminal in Intellij IDEA CE on M1 Mac?


I'm working on a codebase that require openjadk@8 specifically. I've a M1 Mac chip while openjdk8 is for intel chips and not for for m1 chips. enter image description here So I've configured Rosetta terminal on, which is an Apple built emulator translates layer for running Intel-based apps on Apple Silicon Macs. Rosetta 2 terminal: https://www.courier.com/blog/tips-and-tricks-to-setup-your-apple-m1-for-development/

I'm unable to get this rosetta based terminal on Intellij IDEA CE. enter image description here [enter image description here]

I'm able to open default terminal and the one with rosetta outside the intellij idea ce. enter image description here

Now, please help to use to use terminal with rosetta inside intellij idea.


Solution

  • Per this discussion, use the following as the Terminal shell path:

    env /usr/bin/arch -x86_64 /bin/zsh