I have a backend springboot application i'm working on, using Spring Web, Lombok and MongoDb dependencies, but i've been getting an error with major problem stated below;
**unable to make protected java.util.calendar() accessible: module java.base does not "opens java.util" to unnamed module**
I made some searches and discovered i can set java.base/java.util=all-unnamed jvm option. But some said this method is not the best. Does anyone know how i can best solve this problem?
I have tried setting the jvm option to no avail, though i'm not sure if i did it right. I visited the project properties, then saw VM options, then i pasted the java.base/java.util=all-unnamed stuff therein.
I've been able to solve the problem by replacing
java.util.Calendarin my project entities toLocalDateTime.