I am trying to write something to a file, like this:
FileWriter fw = new FileWriter("somefile.txt", true);
It works correctly when started by a single process. Like this:
java -jar XXXXXXX.jar
But when calling it by another process, an IOException will be thrown. Example:
java.io.FileNotFoundException: 'somefile.txt' (No such file or directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
at java.io.FileWriter.<init>(FileWriter.java:61)
FNFE
. – Dekeles