Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: FILE INPUT STREAM NOT WORKING ON EXECUTABLE JAR FILE

  1. #1
    Member
    Join Date
    Apr 2014
    Posts
    82
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default FILE INPUT STREAM NOT WORKING ON EXECUTABLE JAR FILE

    when testing my=
    Last edited by newtolearningjava; April 27th, 2014 at 10:52 AM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,349
    Thanks
    49
    Thanked 2,204 Times in 2,177 Posts

    Default Re: FILE INPUT STREAM NOT WORKING ON EXECUTABLE JAR FILE

    Where is the file located relative to where the jar file is when the code is executed?

    To see where the program is looking for the file, print the File object's absolute path. You will need to create an object that can be used outside of the FileInputStream constructor.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to make an executable .jar file?
    By bdennin in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 11th, 2013, 05:22 PM
  2. Jar File to executable file
    By yasirshabbir44 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 10th, 2013, 04:57 AM
  3. [SOLVED] no sound from executable jar file
    By cl2606 in forum What's Wrong With My Code?
    Replies: 17
    Last Post: June 8th, 2011, 06:41 PM
  4. Jar Executable File Not Working
    By Kimimaru in forum Java Theory & Questions
    Replies: 6
    Last Post: October 15th, 2010, 09:32 PM
  5. Jar Executable File
    By The_Mexican in forum What's Wrong With My Code?
    Replies: 43
    Last Post: June 23rd, 2010, 03:53 PM