I would like to know if we can use Java with OpenGL?
try this https://jogl.dev.java.net/
or try google for “Java and OpenGL”
GL4Java is another possibility:
You could also have a look at Java3D. It is an own API, but its more widespread than the others. At least after it is OpenSource now:
JOGL is the “official” java interface to OpenGL, even though there are alternatives like gl4java also.
jGL is pure java implementation of OpenGL.
Don’t forget LWJGL