Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Re: I can't get Relative paths to work with the code I'm using.

    The code in post#1 was having the problem. You need to find out where the program was looking for the file referenced there:
    FileInputStream file = new FileInputStream("class.dat");

    You want to...
  2. Re: I can't get Relative paths to work with the code I'm using.

    Something like this:
    File aFile = new File<THEPathHERE>); // create a File object
    System.out.println("an ID "+ aFile.getabolutepath()); // print its absolute path

    check the spelling.
  3. Re: I can't get Relative paths to work with the code I'm using.

    Create a File object using the filename and print its absolute path to see where the program is looking for the file.
Results 1 to 3 of 3