Revert "revert upgrade to java 17 due to java.lang.reflect.InaccessibleObjectException: Unable to make field private final int java.lang.ProcessImpl.pid accessible: module java.base does not "opens java.lang" to unnamed module @4ad2d5d1"
Revert "revert upgrade to java 17 due to java.lang.reflect.InaccessibleObjectException: Unable to make field private final int java.lang.ProcessImpl.pid accessible: module java.base does not "opens java.lang" to unnamed module @4ad2d5d1"

This reverts commit 5f8c699906d7c213291ee3c493de3c5c4cc3736b.

scalacenter/scastie,scalacenter/scastie,scalacenter/scastie