I am getting below error while running the java program in linux. The file is there but somehow it is saying no file.

Exception in thread "main" java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:1006) at TestFile.main(TestFile.java:31)