Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8126919

MediaPlayer in 2.1.1 doesn't work when running JAR file as standalone, but does work in NetBeans IDE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.1.1
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows XP, NetBeans 7.1.1

      Description

      I developed a simple game in Java 7u3 and FX 2.03 which uses the MediaPlayer to play simple sounds ("ding!", etc.) when the player presses a key. The sound files are just uncompressed WAV files stored in the same package as the code. This program has been working perfectly for months, until I upgraded to Java 7u5, FX 2.1.1 (I downloaded the bundled upgrade files). After recompiling for the new version, and changing the platform to the new FX platform, the program still works when running in the NetBeans IDE (version 7.1.1), but when I run the JAR file as a standalone from the same \dist directory location where it is generated, the program does not play the sounds at all and intermittently crashes. I removed the latest JDK and reverted to 7u3, FX 2.03 and now the program works perfectly again. I repeated this process twice just to be sure, and FX 2.1.1 always shows the same problem. I can't tell exactly where this problem is occuring, but it appears to be in the runtime (?).

        Attachments

          Activity

            People

            Assignee:
            almatvee Alexander Matveev
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: