B4J Question B4JPackager11 Error With MediaPlayer, jAudioClip [SOLVED]

Discussion in 'B4J Questions' started by jmon, Jul 19, 2019.

  1. jmon

    jmon Well-Known Member Licensed User

    As the title says, I have errors with jAudioClip when compiling an exe with B4JPackager11 or Windows. I also tried with MediaPlayer, and get the same error when running the exe.

    With MediaPlayer:
    With jAudioClip:
    Both errors are related to "Unsupported protocol "jrt"". I couldn't find anything relevant on internet. My App runs fine in Release, Debug modes, or as a Jar, but the error happens when running the exe.

    Thank you for your help.

    EDIT: Solution: The Exe cannot access the audio or video files in File.DirAssets. Copy your files to File.DirApp or File.DirData.
    Last edited: Jul 19, 2019
  2. inakigarm

    inakigarm Well-Known Member Licensed User

  3. jmon

    jmon Well-Known Member Licensed User

    Yes sorry, Java 11.0.1 (The one bundled on the download page of B4J)

    Yes that seems related, but no help from their side!
    Last edited: Jul 19, 2019
  4. jmon

    jmon Well-Known Member Licensed User

    Ok Thanks, that lead to the answer I guess:

    We cannot load from File.Dirassets
    Erel likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice