Often, if you want to work with OpenGL you do so in a native language. A language like Rust, C++, or anything else that compiles in LLVM. Java doesn’t compile natively, but it’s used in many places and has the capability of communciating with native libraries. OpenGL is a common library like that, a native library that is really comon. There is a binding already called the Light Weight Java Game Library (LWJGL).