Error jogamp.opengl.windows.wgl.awt....

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

Error jogamp.opengl.windows.wgl.awt....

IssaKass
Hello, I tried the example in the wiki and that exception occurred: Index -1 out of bounds for length 1
        at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:169). It is raised when trying to show the JFrame. Why this occurrs??
Please help me, I tried to solve it for many hours.
Reply | Threaded
Open this post in threaded view
|

Re: Error jogamp.opengl.windows.wgl.awt....

gouessej
Administrator
Hello

At first, please use JOGL >= 2.4.0.

Secondly, if you use Java >= 9, don't forget the --add-opens clauses. I've talked about that many times on this forum and in my blog.

You obtain this exception because of a bug that was fixed in JOGL 2.4.0 as far as I remember.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Error jogamp.opengl.windows.wgl.awt....

IssaKass
I am using JOGL 2.3.2 from the maven central. But when I used the 2.4.0 version, another error occurred (Unable to determine GraphicsConfiguration: WindowsWGLGraphicsConfiguration)
Reply | Threaded
Open this post in threaded view
|

Re: Error jogamp.opengl.windows.wgl.awt....

gouessej
Administrator
Have you followed these instructions?
https://jogamp.org/wiki/index.php?title=Maven#The_jogamp.org_test_repository

JOGL 2.4.0 is NOT on Maven Central.

Which version of Java do you use? Have you added the --add-opens clauses?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Error jogamp.opengl.windows.wgl.awt....

gouessej
Administrator
In reply to this post by IssaKass
This bug is fixed in JOGL 2.4.0:
https://jogamp.org/bugzilla/show_bug.cgi?id=1317
Julien Gouesse | Personal blog | Website