title: Cucumber Exception Failed to create directory
body: <p>When I run MainRunner class in response I get error message in console like below. I did set permissions for folder.</p>
  
  <p><a href="https://i.stack.imgur.com/eJLV9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eJLV9.jpg" alt="enter image description here"></a></p>
  
  <p>Here is my step class:</p>
  
  <pre><code>package CucumberFramework.steps;
  
  import cucumber.api.java.en.Given;
  
  import cucumber.api.java.en.Then;
  
  import cucumber.api.java.en.When;
  
  
  
  public class LoginSteps {
  
  @Given("^User navigate to stackoverflow webstie$")
  
  public void user_navigate_to_stackoverflow_webstie() throws Throwable {
  
     System.out.println("user_navigate_to_stackoverflow_webstie");
  
  }
  
  
  
  @Given("^User clicks on the login button$")
  
  public void user_clicks_on_the_login_button() throws Throwable {
  
      System.out.println("user_clicks_on_the_login_button");
  
  }
  
  
  
  @Given("^User enters valid username$")
  
  public void user_enters_valid_username() throws Throwable {
  
  System.out.println("user_enters_valid_username");
  
  }
  
  
  
  @Given("^User enters valid password$")
  
  public void user_enters_valid_password() throws Throwable {
  
  System.out.println("user_enters_valid_password");
  
  }
  
  @When("^User clicks again on the login button$")
  
  public void user_clicks_again_on_the_login_button() throws Throwable {
  
  System.out.println("user_clicks_again_on_the_login_button");
  
  }
  
  
  
  @Then("^User should be taken to the sucsfull login page$")
  
  public void user_should_be_taken_to_the_sucsfull_login_page() throws Throwable {
  
  System.out.println("user_should_be_taken_to_the_sucsfull_login_page");
  
  }
  
  @Given("^User navigate to stackoverflow webstie(\\d+)$")
  
  public void user_navigate_to_stackoverflow_webstie2(int arg1) throws Throwable {
  
  System.out.println("user_navigate_to_stackoverflow_webstie2");
  
  }
  
  
  
  @Given("^User clicks on the login button(\\d+)$")
  
  public void user_clicks_on_the_login_button2(int arg1) throws Throwable {
  
  System.out.println("user_clicks_on_the_login_button2");
  
  }
  
  
  
  @Given("^User enters valid username(\\d+)$")
  
  public void user_enters_valid_username2(int arg1) throws Throwable {
  
  System.out.println("user_enters_valid_username2");
  
  }
  
  
  
  @Given("^User enters valid password(\\d+)$")
  
  public void user_enters_valid_password2(int arg1) throws Throwable {
  
  System.out.println("user_enters_valid_password2");
  
  }
  
  
  
  @When("^User clicks again on the login button(\\d+)$")
  
  public void user_clicks_again_on_the_login_button2(int arg1) throws Throwable {
  
  System.out.println("user_clicks_again_on_the_login_button2");
  
  }
  
  
  
  @Then("^User should be taken to the sucsfull login page(\\d+)$")
  
  public void user_should_be_taken_to_the_sucsfull_login_page2(int arg1) throws Throwable {
  
  System.out.println("user_should_be_taken_to_the_sucsfull_login_page2");
  
  }
  
  }
  </code></pre>
  
  <p>I have also looked at permissions for the target folder and have ensured permissions is granted for all users. I'm on Windows 10 Pro. I also try to run Eclipse in administrator mode that didn't help as well.</p>
  
  <p>This is my Pom.xml
  <a href="https://i.stack.imgur.com/bLOv4.png" rel="nofollow noreferrer">https://pastebin.com/ad2qyGRH</a></p>
  
  <p>I have also tried the following:</p>
  
  <p>running: Eclipse menu Project > Clean...</p>
  
  <p><a href="https://i.stack.imgur.com/bLOv4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bLOv4.png" alt="enter image description here"></a></p>
  
  <p>But no joy. Does anyone know what could be causing this please?</p>
  
  <p>Kind regards</p>