I am writing a database management program in java in maven in intellij IDEA. For now, the code is only connecting me to the database in MySQL. The code itself has no errors. However, upon running it, the following error comes: java: package com.sun.tools.javac.code is not visible (package com.sun.tools.javac.code is declared in module jdk.compiler, which does not export it to the unnamed module)
I have not explicitly imported the package. I am not an advanced programmer and have no idea how to solve this issue.
According to ChatGPT, the problem may be due to the jdk version I am using i.e Oracle Open jdk version 20. How do I solve this?