title: java Failed to create new file in windows 7?
body: <p>I 'm trying to create new file in windows 7 using </p>
  
  <pre><code>file.createNewFile()
  </code></pre>
  
  <p>but the file is not created and I got the following exception </p>
  
  <pre><code>Message:
  The system cannot find the path specified
  Stack Trace:
  [java.io.IOException: The system cannot find the path specified,
      at java.io.WinNTFileSystem.createFileExclusively(Native Method),
      at java.io.File.createNewFile(File.java:883),
      at com.mercury.mtf.actions.file.CreateEmptyFileTask.execute(CreateEmptyFileTask.java:56),
      at com.mercury.mtf.actions.file.CreateEmptyFileAction.execute(CreateEmptyFileAction.java:42),
      at com.mercury.mtf.core.AbstractAction.run(AbstractAction.java:50),
      at com.mercury.mtf.core.Unit.runUnitAction(Unit.java:347),
      at com.mercury.mtf.core.Unit.executeUnitAction(Unit.java:176),
      at com.mercury.mtf.core.Unit.run(Unit.java:121),
      at com.mercury.mtf.core.execution.DefaultUnitExecutor.call(DefaultUnitExecutor.java:24),
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303),
      at java.util.concurrent.FutureTask.run(FutureTask.java:138),
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98),
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207),
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886),
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908),
      at java.lang.Thread.run(Thread.java:619)]
  </code></pre>
  
  <p>I'm sure that the path exists, but I realized that the folder marked as read only. I tried to remove the read only flag but I can't get this to work.</p>