I’ve spent a few evenings trying to get openjdk compiled, but have given up. Everything runs fine, but when non native apps do anything intensive things get slow.
Honestly it is okay if you do most of your work through WSL as arm64 is supported there.