This error you report is a very low level one, and indicates a clear
bug in the code of the program where it doesn't close a file that has
Why this bug didn't matter on Windows, is a good question: it might be
that that Windows does this closing internally, it also might be that
the native library that implements the file access for Java on Windows
and Unix/Mac are a subtly different.
This errors has almost certainly error has no relationship to Java or
If you have access to the code you could start hunting for this bug.
And, if you are lucky the FileNotFoundException arises from the location
in teh code that does the opening of files that don't get closed
properly, i.e. closed under all circumstances.
Eduard de Jonh
DİLEK ARIKAN wrote:
I am using MacOS
Sierra 10.12.6 (16G29). The program that i ran millions of times in
Windows environment, is not working with below error on Mac OS after
switching to Mac.
1 The file d4_2 could not be
opened java.io.FileNotFoundException: d4_2 (Too many open files)