- this is not a relative path, it is an absolute path.
- If you are on Windows you need to add your drive letter before your path:
InputStream is = new FileInputStream("C:/files/somefile.txt");
windows doesn't support the / symbol as "root"
If you want to load a file thatt you'll put in your JAR, you need to use
getClass().getResource("path to your file");
or
getClass().getResourceAsStream("path to your file");