does JNI change file directory permissions inadvertently?

I have a server process that creates a thread which will exec a separate executable that runs a JNI method. The JNI method uses JDBC to connect to a database to do some work.

After this thread ends, the server process creates another thread which does a file deletion and a file rename operation. There is a permission denied error when these file operations happen. If the JNI method is not executed, then there is no permission denied error. The JNI code does not touch any file or directory permissions.

Is it possible that the JNI automatically takes over file and directory permissions and changes them?

[628 byte] By [paul.y.wanga] at [2007-11-26 22:28:48]
# 1

> The JNI code does not touch any file or

> directory permissions.

It certainly touches files - it loads the dll that has the JNI in it - right? It loads the class files that have the java code it it - right?

> ...a file deletion and a file rename operation.

It seems really unlikely to me that there would be any point in doing that unless the first process did in fact do something to that file.

But if you are sure it doesn't then simply move that operation first and let the JNI operation run second.

jschella at 2007-7-10 11:32:12 > top of Java-index,Java HotSpot Virtual Machine,Specifications...