title: NoSuchFileException when running jar file
body: <p>When I run a jar file that accesses other files in the <code>src</code> directory, I get the following <code>RuntimeException</code>:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.nio.file.NoSuchFileException:
    src\FileToBeAccessed.txt.lck
            at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
            at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
            at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
            at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source)
            at java.nio.channels.FileChannel.open(Unknown Source)
            at java.nio.channels.FileChannel.open(Unknown Source)
            at java.util.logging.FileHandler.openFiles(Unknown Source)
            at java.util.logging.FileHandler.(Unknown Source)
            at Program.main(Program.java:30)</p>
  </blockquote>
  
  <p>The code works fine when I run it directly without building a jar file.</p>