Re: Unable to determine GraphicsConfiguration
Posted by Goofyseeker3 on Mar 13, 2024; 1:05am
URL: https://forum.jogamp.org/Unable-to-determine-GraphicsConfiguration-tp4042444p4043391.html
Nice.
a follow up issue. I'm testing out the jogldemos package.
what happened to com.jogamp.opengl.cg.* in jogamp-fat.jar?
did it go the way off the applets in the newer jdk's which is not there?
I have gotten some samples working, including gearsfullscreen,
so its not about not getting anything working, at least.
some examples do not require the usual run parameters:
--add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED --add-opens java.desktop/sun.awt=ALL-UNNAMED --add-opens java.desktop/sun.awt.windows=ALL-UNNAMED
one such example is demos.es1.angeles.Main. expected behaviour?
I would think that GLES rendering does not require the parameters, but GL rendering does require them, for some reason.
So I would assume only some libraries are affected by the parameter run start-up issue.
demos.swt.Snippet209 does not require the extra launch parameters but it still uses the GL and not GLES.
could you just replace the argument requiring parts of the library with some other non-requiring code.
even most of the glredbook* stuff works, without any parameters, some does not work at all, a few require the launch parameters.
seems like glredbook stuff uses javax.swing and not java.awt mostly.
so the exact issue is java.awt.window not opengl. if using opengl, where is java.awt required.
all java.awt woes are gone if javax.swing is used for all recent java openjdk compatibility.
additional issues:
javabullet references javax.vecmath.Vector3f which is not there for openjdk 17/21, but has actual errors and other missing stuff in code. (java3d has this library.)
demos.nurbs.curveapp.GLListener references com.jogamp.opengl.util.GLUT which is not there.
demos.nurbs.icons.IconFactory references jogamp.opengl.io.StreamUtil which is not there.
demos.nurbs.surfaceapp.GLListener references com.jogamp.opengl.util.glut.gl2.GLUTgl2 which is not there.
demos.xtrans.Main says:
Exception in thread "main" java.lang.RuntimeException: XTDesktopPane requires new Java2D/JOGL support in Java SE 6 and -Dsun.java2d.opengl=true
at demos.xtrans.XTDesktopPane.<init>(XTDesktopPane.java:109)
at demos.xtrans.Main.run(Main.java:252)
at demos.xtrans.Main.main(Main.java:269)