Search:

Type: Posts; User: Norm

Search: Search took 0.23 seconds.

  1. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    You can put everything in the jar file. When reading "files" from the jar file, you can NOT use any file classes. You must treat the "files" as resources.

    How are you reading the wav files? The...
  2. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    You can NOT use the File class. You need to use getResourceAsStream() to read 'files' that are in a jar file.
    See the end of post #2
  3. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    How did you test it on your computer? Did you move the jar file to an empty test folder?

    To see if there are any errors when running a jar file, open a command prompt window, change directory to...
  4. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    Sorry, I don't know anything about using AudioStreams.
    If the code worked in the IDE, then the only changes should be to a constructor to use an InputStream vs a File or something like that.

    UMR...
  5. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    Do all your catch blocks call the printStackTrace() method?

    We're 90 miles from Joplin.
    Haven't had any tornadoes here (yet).

    Central MO - Rolla?
  6. Replies
    17
    Views
    8,459

    [SOLVED] Re: no sound from executable jar file

    Are there any error messages?
    Open a console window, change to the folder with the jar file and enter the command:

    java -jar YOURJARFILENAMEHERE.jar

    Copy and paste the full contents of the...
Results 1 to 6 of 6