This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

process cannot access the file because another process has locked: java.util.Logging

 
bhuvani krishna
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using java.util.Logging as Logging mechanism for my application. It creates log file in the directory, say for example c://samples/
My application has to create one zip file in the same directory. But while running, It shows the exeception as follows:
java.io.IOException: The process cannot access the file because another process has locked a portion of the file

java.util.Logging creates not only the log file, but also the lck file.
I think, this is the cause for the problem. How can we stop he logger from the creation of lck file.
 
Ajay Singh
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must be opening the file on read-write mode.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic