While I run cucumber tests from IntelliJ IDE, it works perfectly.

However when I try to run it from command prompt, after creating a runner class, the step definitions are not recognized.

Below is how the code looks like:

```
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(
        glue={"classpath:src\\test\\java"},
        features = "src\\test\\resources",
        plugin={"pretty","html:target/site/cucumber-pretty","json:target/cucumber.json"})

public class RunCucumberTests {

}

```

Below is how the project structure looks like. The 'LoginSeps' class contains the step definitions.

[![enter image description here](https://i.stack.imgur.com/2XGpj.png)](https://i.stack.imgur.com/2XGpj.png)

The error which is thrown is as below

[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.79 s <<< FAILURE! - in RunCucumberTests
[ERROR] Login functionality.Login Successful Time elapsed: 0.276 s <<< ERROR!
io.cucumber.junit.UndefinedStepException:
The step 'I am in the login page of application' and 2 other step(s) are undefined.....

Any help is much appreciated.