In Java can I create a URI for a file located locally in the hard drive? If so, how should it be constructed?
Try below:
URI uri = new URI("file:///C:/other/mydir/myfile.txt");