Fix Error:Could not find or load main class | REST API Testing Tutorials Beginners | Malayalam| #12

Опубликовано: 06 Февраль 2026
на канале: The Testing Instinct
282
2

#selenium
#api
#manualtesting
#automationtesting
#testautomationframework
#framework
#seleniumwebdriver
#seleniumjava
#webautomation
#postman
#postmanapitesting
#java
#maven
#maventutorial
#karate
#karaterestapitesting
#restapi
#restapiautomation
#apitesting
#malayalam
#softwaretesting
#beginners
#മലയാളം
#TheTestingInstinct
#tutorials

The video describes about how to fix console error - Error: Could not find or load main class cucumber.api.cli.Main after upgrading Karate to 1.4.0 version from 1.3.1 in Karate.
If you use Eclipse, the Eclipse Cucumber plugin can be used to run Features files. To solve this error add a Java class called Main to your test classpath in the cucumber.api.cli package (src/test/java/cucumber/api/cli/Main.java) with the following code:

package cucumber.api.cli;
public class Main {
public static void main(String[] args) {
com.intuit.karate.cli.IdeMain.main(args);
}
}

Pre-requisite for Karate 1.4.0 version: Java 11
Github: https://github.com/thetestinginstinct...

Video chapters:
0:00 Introduction, Agenda, Pre-requisite & Problem Statement Explanation
2:43 Demo - Fix Error: Could not find or load main class cucumber.api.cli.Main

Git tutorial link:    • Introduction to Git and GitHub. An importa...  
Playlist link:    • Karate REST API Test Automation|REST API T...  
Java configuration video link:    • Configure Java in Windows OS|Core Java for...  
Eclipse IDE installation link:    • Install Eclipse IDE in Windows| Learn Sele...  
Maven configuration video link:    • Configure Apache Maven in Windows| Learn S...  
Postman Playlist link:    • Postman Rest API Testing | Become an exper...