Welcome @qfxfox! I’m afraid this might not be a good idea. The Processing IDE always uses its own Java runtime, not the one from the system, so we never recommend installing another JDK just to try to solve Processing IDE issues.
[EDITED: Changed reply to clarify it is OK to install other Java runtimes. Processing IDE just won’t notice them]