java.io.FileNotFoundException: c:\slask\isu.dsv

77 Views Asked by At

When I am using code coverage in my application using EclEmma. It shows a java.io.FileNotFoundException: C:\slask\isu.dsv error, due to which Junit test is not done. Can you please help me out?

2

There are 2 best solutions below

2
redshift On

There could be two possible reasons:

  1. A file with the specified pathname does not exist.
  2. A file with the specified pathname does exist but is inaccessible for some reason (requested writing for a read-only file, or permissions don’t allow accessing the file)

Thanks.

0
Anshul On

Some points which needs to be checked

  1. Check for the foldername , filename , directory name if this kind of exception appears (any kind spelling errors).
  2. File you are checking for doesn't exists
  3. In java file path should contain double backslash which may not be pointed out incase you are using a normal text editor for writing the code.