Posted by
swong on
Nov 09, 2018; 5:02pm
URL: https://forum.jogamp.org/JOGL-Java-10-modularization-tp4038983p4039283.html
Can you be more explicit as to exactly what you had to set in the project settings, module-info.java, run configurations, etc. to get a JOGL app to work in Java 10 with a modular Eclipse project?
I have been pulling my hair out for days trying to get around the same "index out of bounds" error.
To note, I even tried running the JOGL demos (
https://jogamp.org/deployment/jogamp-current/jogl-test-applets.html ) but when I run the JNLP launch for the "JOGL Version Information" demo, I get:
java.lang.ArrayIndexOutOfBoundsException: -1
at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171)
at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424)
at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1560)
at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:611)
at java.desktop/java.awt.Container.addNotify(Unknown Source)
…
Note: I had to add ttp://jogamp.org to the "Exception Site List" in the Java console for the JNLP launch to run at all. the JNLP launch file indicates that JOGL ver.2.3.2 is being used.)
For the record, my system details:
Win10 personally but Mac and Linux must also be supported with the same codebase)
Java 10.0.2
Eclipse Photon
My particular application is trying to get the NASA WorldWind Java (WWJ) code to run under a Java 10 project that has a module-info.java defined. The WWJ runs with a non-modular project but not with a modular project where I get the "index out of bounds" exception right when the JOGL-based component is added to its parent component (i.e. same as above).
Please help -- The code is part of my students' final project which has run no problem for years until we switched from Java 8 to Java 10. I need to get this code operational in the next few days and it cannot be delayed as I am already late in getting this to the students.
Any advice and/or suggestions would be greatly appreciated as I have no idea what to try next.
Thank you all in advance!