To Fix accessible: module java.base does not “opens java.io” to unnamed module Error just Replace JDK 16 by JDK 15. Here you have to just replace JDK 16 by JDK 15. And your error will be removed. So just try this method.