Yeah, no. Java is the modern day Flash so needs to go away. I won't install it on my shiny M1 MBA.Java programs that use Intel Java don't run that well. I suspect that Java uses a JIT and that that code has to get translated every time as it's not fixed.
I've found that large WINE/CROSSOVER programs don't run well through Rosetta 2.
Unfortunately these are two important program area in my workflow so I run them on Windows.