libgdx/libgdx · error · GdxRuntimeException

absolute() not supported in GWT backend

Error message

absolute() not supported in GWT backend

What it means

Error "absolute() not supported in GWT backend" thrown in libgdx/libgdx.

Source

Thrown at backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtFiles.java:60

	@Override
	public FileHandle classpath (String path) {
		return new GwtFileHandle(preloader, path, FileType.Classpath);
	}

	@Override
	public FileHandle internal (String path) {
		return new GwtFileHandle(preloader, path, FileType.Internal);
	}

	@Override
	public FileHandle external (String path) {
		throw new GdxRuntimeException("external() not supported in GWT backend");
	}

	@Override
	public FileHandle absolute (String path) {
		throw new GdxRuntimeException("absolute() not supported in GWT backend");
	}

	@Override
	public FileHandle local (String path) {
		throw new GdxRuntimeException("local() not supported in GWT backend");
	}

	@Override
	public String getExternalStoragePath () {
		return null;
	}

	@Override
	public boolean isExternalStorageAvailable () {
		return false;
	}

	@Override

View on GitHub (pinned to 97f4086187)

Solutions

  1. GWT cannot access absolute file system paths; use Gdx.files.internal(...) for assets instead of Gdx.files.absolute().

When it happens

Trigger: Thrown at backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtFiles.java:60 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of libgdx/libgdx@97f4086187 (2026-08-14). Data as JSON: /api/errors/5ad93ca49a8a3e46. Report an issue: GitHub.