M1/M2/M3 can still run x64 JVM. Hence, it should not always look for an ARM package and need to detect the correct architecture of JVM.