first update version because you are probably using old version, second if you still have the issue repost, if reposting in comment state a non-exact java version on computer, for example if using "....JDK 18" just say JDK 18.
Ok, i installed the newest version and these issues are still appearing. but I did not clearly understand the rest of your instruction. Could you be more specific please? what exactly did you mean by repost?
in a cmd go to home path such as the Users/user directory then run "java -version" and post the results without system specific identifiers in a reply.