In this case probably you do not want to read the file as a file but as a resource (located into your classpath). In this case I believe that path./com/test/Test.xml is invalid because file Test.xml is not located directly under project root but somewhere under./src/resources/com/test or so. › Mac Full Path For Fileinputstream Java ▄