Question

I have an application that uses files.txt to work. When I test the application with a main Class it works but when I deploy it I have this error :

    java.io.FileNotFoundException: keyWords/CA.txt (No such file or directory)
    java.io.FileNotFoundException: keyWords/CA.txt (No such file or directory)
    java.io.FileNotFoundException: keyWords/NormalWords.txt (No such file or directory)

How can I make this work. Thanks !

Was it helpful?

Solution

I resolved the problem by giving complete path: in the ide right click on the file and go to Properties; to get absolute path. Give that path as input file. It works for me. HTH !

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top