Login  Register

Re: Unable to determine GraphicsConfiguration

Posted by Goofyseeker3 on Mar 05, 2024; 9:13am
URL: https://forum.jogamp.org/Unable-to-determine-GraphicsConfiguration-tp4042444p4043366.html

Custom MANIFEST.MF without eclipse jar-in-jar loader:

Manifest-Version: 1.0
Add-Exports: java.base/java.lang=ALL-UNNAMED java.desktop/sun.java2d=ALL-UNNAMED
Add-Opens: java.desktop/sun.awt=ALL-UNNAMED java.desktop/sun.awt.windows=ALL-UNNAMED
Main-Class: fi.jkauppa.joglrenderengine.JOGLRenderEngine
Class-Path: ./ jogamp-fat.jar

This results in error:
Error: Could not find or load main class fi.jkauppa.joglrenderengine.JOGLRenderEngine
Caused by: java.lang.NoClassDefFoundError: com/jogamp/opengl/GLEventListener

Default Eclipse manifest with added Add-Exports and Add-Opens lines results in graphicsconfiguration error.

Btw, when the graphics configuration error happens, there will be an extra non-closing java se process thread left running after the main program console closes.

Well I think the module arguments transform the jar run mode to module mode and not classpath mode.