Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GeometryWars fails to load bgm.mp3: "jfxmedia.MediaException: Could not create player"

See original GitHub issue

I spotted on reddit, and tried out the first example listed: GeometryWars. I cloned FXGLGames, changed directory to GeometryWars, executed mvn package which succeeded, and ran the jar with java -jar and it failed. See log output, etc:

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

AlmasBcommented, Sep 15, 2016

After a long search through libraries and dependencies I’ve managed to install libavcodec and libavformat on a clean fedora 24. In short, ../jre/lib/amd64/ has libavplugin(53-56).so, so basically ffmpeg-compat gives version 52, which is no longer supported in jdk8_102, the new ffmpeg gives 57, which is not yet supported. So best bet is to use 56.

The rpm I used is here.

dnf install DOWNLOADED_RPM.rpm will say that a few .rpm are missing, so they have to be downloaded again manually using the same repo. Here’s a shortcut for x86_64.

Once ffmpeg installs, you will find several libav*.so in /usr/lib64/ffmpeg-full-libs/ or wherever it installed them. All of the libav*.so need to be copied to /lib64/.

This should do it, though I installed a few other things along the way like gstreamer* and glib*, so not entirely sure at what point the game stopped throwing the exception

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found