How to retry opening a properties file in Java
4 answers
Some code snippets will be helpful, but one of the following problems could be a problem:
- Your code will successfully catch the first FileNotFoundException, but upon waking up, the code does not successfully handle the second
- Another exception is thrown and not handled. Try temporarily wrapping the code in question with a
catch (Exception e)
to see which exception is thrown. - The program you use to edit the file is to "lock" the properties file and prevent access by your Java code.
Good luck.
0
a source to share