Giter VIP home page Giter VIP logo

Comments (7)

LaiZhou avatar LaiZhou commented on May 18, 2024

found a related issue. AlmasB/FXGL#644

from fxglgames.

LaiZhou avatar LaiZhou commented on May 18, 2024

Update.

module FlappyBird {
  requires com.almasb.fxgl.all;
  opens assets.music;
  opens assets.sounds;
  opens assets.textures;

  opens com.almasb.fxglgames.flappy;
  exports  com.almasb.fxglgames.flappy;
}

I try to create every sub-pakcage of assets ,and opens them, it reported new error:

[JavaFX Application Thread] WARN  AssetLoader          - Failed to load sound jump.wav Error: java.lang.UnsupportedOperationException: Unsupported protocol "jrt"

It seems like an openJdk bug.

from fxglgames.

LaiZhou avatar LaiZhou commented on May 18, 2024

@AlmasB

from fxglgames.

AlmasB avatar AlmasB commented on May 18, 2024

Hi, you can open the module without opening each asset. So,

open module ...{

}

from fxglgames.

LaiZhou avatar LaiZhou commented on May 18, 2024
open module FlappyBird {
  requires com.almasb.fxgl.all;
  exports  com.almasb.fxglgames.flappy;
}

@AlmasB
I tried it, still failed, it showed the same error.
The steps.
execute the command

mvn clean install
mvn javafx:jlink

run the FlappyBird.bat

from fxglgames.

AlmasB avatar AlmasB commented on May 18, 2024

from fxglgames.

AlmasB avatar AlmasB commented on May 18, 2024

Yes, with open module I also get Unsupported protocol "jrt". I seem to recall that javafx-media is not yet available natively, which is likely what's causing the issue. For more details, you can talk to the Gluon team, I think they are releasing the native javafx-media support soon.

from fxglgames.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.