Skip to content

GTA Schulprojekt v1.1

Latest

Choose a tag to compare

@dominikwe09 dominikwe09 released this 27 Jun 19:04
b9826c9

Changelog

Fix: Game wouldn't launch on Java 17+ (Windows)

What was broken:
Running the game via start.bat (or double-clicking GTA.jar directly) failed with:

com.jogamp.opengl.GLException: Unable to determine GraphicsConfiguration

right when the game window tried to open.

Why it happened:
The game uses JOGL 2.4 for OpenGL rendering. On Java 17 and newer, the JVM's module system blocks JOGL from accessing internal sun.awt/sun.java2d classes it needs to negotiate the window's graphics configuration on Windows. This is a known JOGL/Java 17 incompatibility, not a bug in the game code itself.

What was fixed:

  • start.bat now launches the game with the required --add-exports JVM flags that re-open those internal packages for JOGL:
    --add-exports java.base/java.lang=ALL-UNNAMED
    --add-exports java.desktop/sun.awt=ALL-UNNAMED
    --add-exports java.desktop/sun.java2d=ALL-UNNAMED
    
  • Removed a stray UTF-8 BOM from start.bat that made cmd.exe choke on the first line (@echo off) on some systems.
  • Added the missing Texturen/ folder to the release build — some textures (e.g. himmel3.png) were missing, causing a FileNotFoundException and a blank white window after the launch fix.

Important — how to run the game:
You must run start.bat, not GTA.jar directly. Double-clicking the .jar (or running java -jar GTA.jar) skips the required JVM flags above and will fail with the GLException on Java 17+. Always launch via start.bat.