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.


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

Results 1 to 2 of 2

Thread: FileNotFound error while working with XML files in windows

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Thanked 0 Times in 0 Posts

    Default FileNotFound error while working with XML files in windows

    Hi everyone, I know this sounds silly but tell me somebody apart from a file not being found in a specified directory what else can lead to the exception above? Is it that java doesnt like windows directory naming that allows spaces, I deploy my server application under windows Documents and Settings with the xml config files in a sub directory but anytime I run my application it cant find the config files. I am using a third party jar libraries-specifically jpos.
    help would be highly appreciated

  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    United Kingdom
    My Mood
    Thanked 294 Times in 227 Posts
    Blog Entries

    Default Re: FileNotFoundError when working with xml files in windows

    Hello ochieng,

    Welcome to the Java Programming Forums!

    The only time ive ever encounted the FileNotFoundError is when im pointing to an incorrect directory or file.

    Have you tried testing on another directory that doesn't contain spaces? Its worth looking at that first..

    FileNotFoundException (Java 2 Platform SE v1.4.2)

    If possible, please post your code here. It will help others to diagnose your problem.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. Java program which can list all files in a given directory
    By JavaPF in forum Java Programming Tutorials
    Replies: 8
    Last Post: July 9th, 2013, 03:38 AM
  2. getting files in the linux server
    By Truffy in forum Java Networking
    Replies: 36
    Last Post: June 22nd, 2009, 06:32 PM
  3. Replies: 1
    Last Post: March 11th, 2009, 04:41 PM
  4. Replies: 4
    Last Post: January 27th, 2009, 12:03 AM