small medium large xlarge

04 Sep 2014, 15:21
bala (8 posts)

On windows 8.1, I get this error

Could not find or load main class cucumber.api.cli.Main

when compiling and invoking Cucumber from within checkout folder.

Folder structure: Under checkout folder I have features, step_definitions, jars folders and cucumber.bat file.

The jars versions are as follows: cucumber-core-1.1.8, cucumber-java-1.1.8, cucumber-jvm-deps-1.0.3, gherkin-2.12.2.

java version “1.8.0_20”

04 Sep 2014, 15:38
bala (8 posts)

Ok, the issue was with “:” being used in the cp (classpath) list.

Using java -cp "jars/*;." instead of java -cp "jars/*:." resolved the issue.

You must be logged in to comment