Search:

Type: Posts; User: dougie1809

Search: Search took 0.08 seconds.

  1. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Oh right, thanks. I'l look into that. I never knew that how your code could be the problem with creating jar files.

    Thanks again
  2. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Yes it can take in a URL, FILE or URI as a String. The code below is the full value of the String:



    String song = new File("menu.mp3").toURI().toString();


    This interpretation of the String...
  3. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Yes that file is in the jar file. I'm not sure how it is reading these files, I just don't understand why the file won't execute when removed from the directory where the jar file was created. For...
  4. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Thanks for the reply again.

    Because the jar files executes in the same directory where the file was created, I copied the output of the successful result below

    Microsoft Windows [Version...
  5. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Yes, the jar file does contain all it's resources. As it works ok and executes. But when I move the jar file elsewhere from the directory where it was created, it wont execute. That's my new problem
  6. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Thanks for the reply. I actually managed to get the jar executing successfully now by adding each jar file to the class-path in the manifest.
    Although now when I copy that jar file to another...
  7. Replies
    14
    Views
    2,932

    Re: Creating a Jar executable java program

    Thanks for the reply.

    Well there are exactly 4 jar files that I'm using for javaFX contained in the one jar file I'm trying to create.
    I'm not sure how to distribute them separately, so there are...
  8. Replies
    14
    Views
    2,932

    Creating a Jar executable java program

    Hi,

    I created a simple quiz program which includes audio MP3 files and image JPG files. Most importantly I used an external package in order to play audio files (JavaFX package) to the quiz...
Results 1 to 8 of 8