Skip to content

Bug: module not found on new v25 of FXGL #1462

Description

@jvondermarck

Describe the bug

  • My dependabot wanted to update my project from version 21 to 25, but inside my module-info.java I have errors.
/dinosaur-exploder/src/main/java/module-info.java:2:18
java: module not found: javafx.controls
/dinosaur-exploder/src/main/java/module-info.java:3:27
java: module not found: com.almasb.fxgl.all
/dinosaur-exploder/src/main/java/module-info.java:8:18
java: module not found: javafx.media
/dinosaur-exploder/src/main/java/module-info.java:9:27
java: module not found: com.almasb.fxgl.scene
/dinosaur-exploder/src/main/java/module-info.java:10:18
java: module not found: javafx.graphics
/dinosaur-exploder/src/main/java/module-info.java:13:18
java: module not found: javafx.base
/dinosaur-exploder/src/main/java/module-info.java:14:27
java: module not found: com.almasb.fxgl.entity

Here is my module-info.java:

module com.dinosaur.dinosaurexploder {
  requires javafx.controls;
  requires com.almasb.fxgl.all;
  requires jpro.webapi;

  exports com.dinosaur.dinosaurexploder;

  requires javafx.media;
  requires com.almasb.fxgl.scene;
  requires javafx.graphics;
  requires com.fasterxml.jackson.databind;
  requires annotations;
  requires javafx.base;
  requires com.almasb.fxgl.entity;
  requires java.logging;

  opens assets.textures;
  opens assets.sounds;
  opens assets.ui.fonts;
  opens com.dinosaur.dinosaurexploder.model to
      com.almasb.fxgl.core;
  opens com.dinosaur.dinosaurexploder.components to
      com.almasb.fxgl.core;
  opens com.dinosaur.dinosaurexploder.utils to
      com.almasb.fxgl.core;
  opens com.dinosaur.dinosaurexploder.constants to
      com.almasb.fxgl.core;
  opens com.dinosaur.dinosaurexploder.interfaces to
      com.almasb.fxgl.core;
  opens com.dinosaur.dinosaurexploder.controller.core to
      com.almasb.fxgl.core;
}

To Reproduce
Steps to reproduce the behavior:

  1. Go to pom.xml file
  2. Update FXGL version to 25.0.1
  3. Run the project
  4. See error

Expected behavior
My project should run

Screenshots

Image

Runtime info(please complete the following information):

  • OS and version: MacOS 26.2
❯ java -version        
openjdk version "25.0.2" 2026-01-20
OpenJDK Runtime Environment Homebrew (build 25.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 25.0.2, mixed mode, sharing)

Additional context / possible fixes
Is there any breaking stuff that I should update in my project? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions