Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Glad you figured it out.
  2. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Why does the error keep moving around? What happened to The error in post#21

    Please identify which classes are yours in the error message.


    Look at the source lines referred to and see what...
  3. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Change the code to use a URL object and print that out the same as for the sound files.The check that what is printed out is in the jar file with the correct path
  4. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    That looks like it is looking in the jar file.


    What is ImageIO.read trying to do? What are its arguments? on line 19
  5. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    What println printed it? Add an id string to ALL the println so you know which one is printing
    ...println("This is me printing theVar=" + theVariableHere);
  6. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Try using /
  7. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    What is the null that was printed out?
  8. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Run it from the command prompt and copy the contents of the screen here.
    java -jar <YOURJARFILENAME>.jar

    To copy the contents of the command prompt window:
    Click on Icon in upper left corner...
  9. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Does It work in the IDE? Now do it from the jar in a test folder.
  10. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Your URLs are all to disk files not to the contents of the jar file.

    Where was the program executed that produced what you posted in post#7?
    In the IDE or from the jar in a test folder.
  11. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    What about printing out the URLs also. Do it both ways. In the IDE and standalone in the jar.

    If it works in Eclipse, then its probably a path problem.
  12. Replies
    27
    Views
    4,442

    [SOLVED] Re: .jar file won't execute

    Try printing out the values of soundFileName and the URL so you can verify that they have correct values.
Results 1 to 12 of 12