small medium large xlarge

Generic-user-small
23 Jul 2015, 14:00
Anil Kakumani (1 post)

I recently purchased the ebook and started reading. I’m stuck on the 18th page where it says “before we can do that we have to compile the new CheckoutSteps class and add it to our classpath”. I tried creating a variable name: CLASSPATH variable value: .;C:\Users\admin\checkout\step_definitions
And I edited the cucumber shell file as given in page# 18. When I execute ./cucumber, it’s throwing an error as “Could not find or load main class cucumber.api.cli.Main”. I’m running this in command line and executed the cucumber.bat from checkout. Greatly Appreciate for any help. Thank you.

Generic-user-small
31 Jul 2015, 19:02
Seb Rose (19 posts)

Hi Anil,

Have you tried downloading the sample code for the book? If you have, then take a look at the folder structure and see if it’s the same as the structure that you’re trying to use.

You should start up a command terminal, change into the downloaded directory first_taste\04 and execute cucumber.bat from there

Let me know if the problem persists.

Seb

You must be logged in to comment