Illegal reflective access

WARNING: Illegal reflective access by com.jme3.util.ReflectionAllocator (file:/Users/ianmcclean/.gradle/caches/modules-2/files-2.1/org.jmonkeyengine/jme3-core/3.2.1-stable/e291222f9a6d07e52daf99e8f3b9385ddabaf1ca/jme3-core-3.2.1-stable.jar) to method sun.nio.ch.DirectBuffer.cleaner()
WARNING: Illegal reflective access by com.jme3.util.ReflectionAllocator (file:/Users/ianmcclean/.gradle/caches/modules-2/files-2.1/org.jmonkeyengine/jme3-core/3.2.1-stable/e291222f9a6d07e52daf99e8f3b9385ddabaf1ca/jme3-core-3.2.1-stable.jar) to method sun.nio.ch.DirectBuffer.attachment()
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/Users/ianmcclean/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.3/3df168ac74e4a8c96562cdff24ad352e255bf89c/lwjgl-2.9.3.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/Users/ianmcclean/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.3/3df168ac74e4a8c96562cdff24ad352e255bf89c/lwjgl-2.9.3.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)

When using jdk 9 and gradle to run my simple application, the following is printed to my error stream. I believe theses errors occur in the static constructor of ReflectionAllocator but I do not know how to fix them.

I don’t think you can fix them. It’s part of the Java 9 deprecation of access to internal classes (like those in the sun. packages).
The methods still work and it’s just a warning so don’t worry about it. LWJGL, JOGL all those libraries that use internal classes know about it and are trying to fix it.

https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-7BB28E4D-99B3-4078-BDC4-FC24180CE82B

LWJGL3 uses its own buffer allocator which supports java 9.