DEV Community

Discussion on: Removing illegal reflective access warnings in Grails 4

Collapse
 
makrandbkar profile image
Mak Bhatamrekar

I got this error as soon as I configured my mac to use Java11 and Grails4, and type grails -version at the command prompt.
It was not allowing me to create an app so was not able to get the build.gradle file for the application.

Step1. Added . export JAVA_OPTS="$JAVA_OPTS --add-opens....(as per the link in GROOVY_TURN_OFF_JAVA_WARNINGS)

Step2. Then created the grails Application

Step3. Then updated the build.gradle file for the application as mentioned above.

thank you

Collapse
 
erichelgeson profile image
Eric Helgeson

These are just warnings, they wouldn't have prevented anything from working. There is no need to do those extra steps.