Trying to use a newer JDK on some applications, like Intellij, may require adding entries to the idea64.vmoptions file to relax the module restrictions that were tightened in JDK 15 and 16, if that app hasn't been updated for those changes.
Entries like this:
--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED
might be needed.
Trying to use a newer JDK on some applications, like Intellij, may require adding entries to the idea64.vmoptions file to relax the module restrictions that were tightened in JDK 15 and 16, if that app hasn't been updated for those changes. Entries like this: --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED might be needed.
See https://youtrack.jetbrains.com/issue/IDEA-261033 for entries that might be needed.