Login  Register

Error jogamp.opengl.windows.wgl.a......

Posted by Tom123 on Jan 09, 2023; 10:55am
URL: https://forum.jogamp.org/Error-jogamp-opengl-windows-wgl-a-tp4042029.html

Hello :-),

I got an error message like this:

java.lang.arrayIndexoutofboundsexception:
Index -1 out of bounds for length 1 ( in jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory)

I found the solution from Mr. Jzy3d with stated the following:
"As discussed on JOGL bugtracker, it can be workaround using the following VM options"
--add-exports java.base/java.lang=ALL-UNNAMED
--add-exports java.desktop/sun.awt=ALL-UNNAMED
--add-exports java.desktop/sun.java2d=ALL-UNNAMED

Tbh iam not very familiar.
We are using BlueJ.

i added in the bluej.defs the lines Jzy3d mentioned.

Maybe i dont understand, but where do i add the VM options for startup?
Those lines i added into the bluej.defs doesnt worked :-(.

Thank you very much in advance and stay safe !