title: File.createNewFile() gives java.io.IOException: Permission denied
body: <p>My OS is fedora and I use the following code to create a file:</p>
  
  <pre><code>String destFile = "/var/www/html/nykkos/app/webroot/AssimilatorGenerator/Script_May6/db/"+"musics.db";
  File destinationFile= new File(destFile);
  if(!destinationFile.exists()) {
  destinationFile.createNewFile();
  }
  </code></pre>
  
  <p>It gives me the following exception at the line <code>destinationFile.createNewFile()</code></p>
  
  <pre><code>java.io.IOException: Permission denied
  </code></pre>
  
  <p>Why this exception occurs and how can I overcome the same?</p>