[Solved] java.io.FileNotFoundException The system cannot find the path specified [closed]


You have not provided the file name so you get that exception,use below code

  OutputStream file = new FileOutputStream(new File("D://timer.pdf"));

See the doc here

solved java.io.FileNotFoundException The system cannot find the path specified [closed]