Open LaiZhou opened 4 years ago
found a related issue. https://github.com/AlmasB/FXGL/issues/644
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.
@AlmasB
Hi, you can open the module without opening each asset. So,
open module ...{
}
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
Thanks, I'll check it out later today
On Tue, 11 Feb 2020, 8:55 am LaiZhou, notifications@github.com wrote:
open module FlappyBird { requires com.almasb.fxgl.all; exports com.almasb.fxglgames.flappy; }
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
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AlmasB/FXGLGames/issues/5?email_source=notifications&email_token=AA3NT5U6DNN2KSKF6ZCYIRTRCJRXDA5CNFSM4KSHX2IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLT7VI#issuecomment-584531925, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3NT5UFNK73MHQ653IRLRLRCJRXDANCNFSM4KSHX2IA .
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.
I used jlink to generate executable binary , but when I execute command ,it reported the error:
How to generate the correct executable binary on Windows? I want to get an .exe file finally.