Can an application that requires JRE 6 run in Rosetta 2?

I have an application I'd like to run on a new MacBook Air that has as one of its requirements installing Apple JRE 6. Prior to Apple Silicon, this would've been as simple as installing it from Apple's website. However, from what I understand there is no official Java implementation for ARM Macs, and even if there were I imagine that OpenJDK won't have a JRE 6.0 version.

Is it possible to install JRE 6 in such a way that it works under Rosetta? Or will this be an impossible configuration to support?


Solution 1:

Azul is already released openJDK Arm64 8 binaries including JRE. Java8 is backward compatible so can run all previous Java versions. I believe it's possible to setup environment so that java app will use it instead of Apple Java. HomeBrew suggests:

For the system Java wrappers to find this JDK, symlink it with sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

or with macports just sudo port install zulu-jdk8 and /usr/bin/java finds it automatically