classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view


Hello :-),

I got an error message like this:

Index -1 out of bounds for length 1 ( in

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 !

Reply | Threaded
Open this post in threaded view

Re: Error


At first, use the very latest release candidate to be sure that you benefit of the bug fix in WindowsAWTWGLGraphicsConfigurationFactory. Changing the case of exceptions doesn't help...

The answer is in the documentation, set the bluej.vm.args property in the bluej.defs file but that's what you already do.

Those options are necessary since Java 9 in order to access some classes by reflection normally inaccessible when you don't "break" the modularization.

I advise you to run your source code without using an IDE as a first step to ensure that the suggested solution works even without putting the IDE into the equation to solve and when it works, try again inside your favorite IDE.

P.S: I'm not a native speaker, I do my best. Please avoid abusing of abbreviations.
Julien Gouesse | Personal blog | Website