Search:

Type: Posts; User: Aurevir

Search: Search took 0.50 seconds.

  1. [SOLVED] Re: Class throws FileNotFoundException when called from another class

    Ah, there we go! I had been using the relative path ("Area.txt"), so I tried putting in the absolute path without the bin, and it worked perfectly! Thanks so much for your help!
  2. [SOLVED] Re: Class throws FileNotFoundException when called from another class

    Well, that begs the question; why would an incorrect path allow it to work inside the class, but not when called from the runner?
  3. [SOLVED] Re: Class throws FileNotFoundException when called from another class

    Hmmm... it's close, but not exact. To corroborate, the path I'm using for a background image in the runner class goes like this: /Users/*username*/Documents/workspace/Quest/grassBackdrop.jpg
    ...
  4. [SOLVED] Re: Class throws FileNotFoundException when called from another class

    /Users/*my username*/Documents/workspace/Quest/bin/Areas.txt

    Quest is the working name of the game, so that's what the folder is called in the workspace.
  5. [SOLVED] Re: Class throws FileNotFoundException when called from another class

    I'm sure that the file name and path name are correct; as I said, when I call the constructor from the public static void main within the class, it runs absolutely fine. If I tell it to print out the...
  6. [SOLVED] Class throws FileNotFoundException when called from another class

    A friend and I are working on a simple game, and I have run into a roadblock. The program contains a class, called Area, whose purpose is to read in a series of coordinate pairs into an arraylist...
Results 1 to 6 of 6