title: Not able to locate corresponding java file of .feature file
body: <p>I am running selenium with cucumber-jvm and junit framwork.I modified <a href="http://www.opencredo.com/2013/07/02/running-cucumber-jvm-tests-in-parallel/" rel="nofollow noreferrer">this</a> example as per my requirement. I need to run test through ant file, so I created corresponding ant file, my feature file is running correcting and it's also suggesting on cmd to implement @Given, @When,@Then etc regular expression, But I am also creating this steps in java file and providing path that file's package in glue parameter of @cucumber.option in my test file. But it's not picking properly.</p>
  <p>Here is my some ant file code</p>
  <pre><code>  &lt;target name=&quot;run&quot; depends=&quot;compile&quot;&gt;
      &lt;mkdir dir=&quot;out/cucumber-junit-report&quot;/&gt;
      &lt;java classname=&quot;cucumber.api.cli.Main&quot; fork=&quot;true&quot; failonerror=&quot;false&quot;&gt;
          &lt;classpath refid=&quot;compile.classpath&quot;/&gt;
          &lt;arg value=&quot;--format&quot;/&gt;
          &lt;arg value=&quot;junit:out/cucumber-junit-report.xml&quot;/&gt;
          &lt;arg value=&quot;--format&quot;/&gt;
          &lt;arg value=&quot;pretty&quot;/&gt;
          &lt;arg value=&quot;--format&quot;/&gt;
          &lt;arg value=&quot;html:out/cucumber-html-report&quot;/&gt;
          &lt;arg value=&quot;src/test/resources&quot;/&gt;
      &lt;/java&gt;
  
      &lt;junitreport todir=&quot;out/cucumber-junit-report&quot;&gt;
          &lt;fileset dir=&quot;out&quot;&gt;
              &lt;include name=&quot;cucumber-junit-report.xml&quot;/&gt;
          &lt;/fileset&gt;
          &lt;report format=&quot;frames&quot; todir=&quot;out/cucumber-junit-report&quot;/&gt;
  
      &lt;/junitreport&gt;
  &lt;/target&gt;
  </code></pre>
  <p>and here is my testclass code</p>
  <pre><code> package com.cucumber;
  
   import com.cucumber.stepdefs.AddRecordStep;
   import cucumber.api.junit.Cucumber;
   import org.junit.runner.RunWith;
  
  @RunWith(Cucumber.class)
  @Cucumber.Options(
      glue = {&quot;com.cucumber.pageobjects&quot;}
     )
   public class AddRecordTest {
  
    }
  </code></pre>
  <p>I checked many link everylink is saying use glue and define path but I am not able to get solution by using this. Below is my package structure's Image</p>
  <p><img src="https://i.stack.imgur.com/MMLHS.png" alt="enter image description here" /></p>
  <p>I am stuck here. Any help is appriciated.</p>