(For everyone who does not understand the question, please note, the os.arch property will only give you the architecture of the JRE, not of the underlying OS, which does not answer my question)
If you install a 32 bit jre on a 64 bit system, System.getProperty("os.arch") will return x86
In order to actually determine the underlying architecture, you will need to write some native code.
I want my app to do something if the processor is intel and something else if my processor is apple silicon.
I tried with
System.getProperties().list(System.out);
System.out.println(System.getProperty("os.arch"));
but on intel os.arch
is the same value as in apple silicon = x86_64