Hover over in Runner class --> import io.cucumber.junit.Cucumber; Click on "Organize imports" Suggestion. This should remove the failure underline.