Hi everyone, i’m trying to run katalon script in Amazon Ec2 but im getting Caught: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver
what i understand by error message is i’m missing webdriver but i don’t know how to set up Webdriver path i thought KRE(Katalon Runtime Enviornment) provide all these modules. i made sure i have Java 8 installed.
No. You are wrong. The org.openqa.selenium.WebDriver is not a part of the WebDriver library.
It is a part of the “Selenium-java” library, which is of course bundled in the distribution of Kataln Runtime Environment.
This message implies that katalonc shell script could not find the jar files bundled in the Katalon Runtime Environment at all. The katalonc could not initialize the CLASSPATH for with Selenium-java jars etc. Possiblly, the current working directory is not set as the katalonc script expects.
chromedriver is located at default location: /home/ec2-user/.eclipse/2092021755_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
im getting this message while running but there is not folder called drivers when i manually checked
hi @kazurayam i have set KATALON_JAVA_HOME = $JAVA_HOME that webdriver error is gone but im getting new error
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 8: unable to resolve class internal.GlobalVariable
@ line 8, column 8.
import internal.GlobalVariable as GlobalVariable
“unable to resolve class internal.GlobalVariable” is an old recurring issue. Many people encountered with it. Search this forum for “unable to resolve class internal.GlobalVariable”. You will find many posts about it. Read them through. I am not sure if they are helpful for you or not. It is likely that you get confused more.