Classnotfound Errors org/openqa/selenium/Capabilities

I am trying to integrate some tests that are working locally on a Mac install but will not work on a Linux Jenkins command line. We are getting the same errors on our more advanced tests. We followed the jenkins setup guide. Any recommendations?

01-17-2018 08:48:17 PM - [ERROR]  - Test Cases/Hello World FAILED because (of) java.lang.NoClassDefFoundError: org/openqa/selenium/WebElementCaught: java.lang.NoClassDefFoundError: org/openqa/selenium/Capabilitiesjava.lang.NoClassDefFoundError: org/openqa/selenium/Capabilities	at com.kms.katalon.core.mobile.contribution.MobileDriverCleaner.cleanDrivers(MobileDriverCleaner.java:9)	at com.kms.katalon.core.driver.internal.DriverCleanerCollector.cleanDrivers(DriverCleanerCollector.java:27)	at com.kms.katalon.core.driver.internal.DriverCleanerCollector$cleanDrivers$1.call(Unknown Source)	at TempTestSuite1516222095182.run(TempTestSuite1516222095182.groovy:50)Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.Capabilities	... 4 more01-17-2018 08:48:17 PM - [END]    - End action : openBrowser01-17-2018 08:48:17 PM - [END]    - End Test Case : Test Cases/Hello WorldThe test case is extremely simpleimport static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariableWebUI.openBrowser('https://www.google.com')WebUI.delay(5)WebUI.closeBrowser()

How do you ‘move’ your project to Jenkins system? You check out your project using source control? :slight_smile:

We are pulling the project from git. It was run/setup on a Mac install

@Vinh Nguyen

Any ideas?

Can you post for me content of your .classpath project? Or just try to delete this .classpath file first and then try again.

Ah I’ve observed that using OpenJDK is a need for Linux version. You can check it by typing this in your terminal screen:

java -version


If there is no openJDK****information is displayed, then surely you will need to install it instead following this guide (enter command for JDK 8): http://openjdk.java.net/install/index.html

Screen Shot 2018-02-07 at 11.50.50.png

I´m having the same problem and found that class org/openqa/selenium/Capabilities is in the jar
selenium-server-standalone-2.53.0.jar which is included in the .classpath file in my Windows version of the project but is not in the Linux version executed by Jenkins. In fact, none of the jars in /configuration/resources/lib folder is included in .classpath in Linux version.

I manually added them to .classpath but the file is rewritten every time the Jenkins job is executed.

Why is Katalon generating different .classpath files?

My java version is OpenJdk:

$ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

Linux .classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="src" output="bin/keyword" path="Keywords"/>
	<classpathentry kind="src" output="bin/listener" path="Test Listeners"/>
	<classpathentry kind="src" output="bin/lib" path="Libs"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.core_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/net.sf.supercsv.super-csv_2.1.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.poi_3.9.0.v201405241750.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.poi.ooxml_3.9.0.v201405241905.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.poi.ooxml.schemas_3.9.0.v201405241750.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.dom4j_1.6.1.v201312101416.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.io_2.4.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.lang_2.6.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.xmlbeans_2.6.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.google.gson_2.8.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.jsoup_1.7.2.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.mysql.jdbc_5.1.38.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.microsoft.sqlserver.sqljdbc4_4.1.5605.100.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.dbutils_1.6.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.oracle.jdbc.ojdbc7_12.1.0.2.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.postgresql.jdbc41_9.4.1208.jre7.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.eclipse.osgi_3.11.3.v20170209-1843.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.constant_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.eclipse.persistence.eclipselink_2.5.0.RC1.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.selenium-standalone_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/atu.testrecorder.screen-recorder_2.1.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.google.guava_23.0.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.codec_1.7.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.logging_1.2.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.httpcomponents.httpclient_4.5.1.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.httpcomponents.httpcore_4.4.4.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.junit_4.12.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.hamcrest.core_1.3.0.v201303031735.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.beanshell.bsh_2.0.0.0b4.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.ant.launcher_1.9.6.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.core.appium_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.lang3_3.1.0.v201403281430.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.util_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.core.mobile_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/org.apache.commons.validator_1.5.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.core.webservice_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/wsdl4j_1.6.2.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.google.oauth-client.google-oauth-client_1.22.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.google.http-client.google-http-client_1.22.0.jar"/>
	<classpathentry kind="lib" path="/home/devop/Katalon_Studio_Linux_64-5.3/plugins/com.kms.katalon.core.webui_1.0.0.201801251559.jar"/>
	<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
	<classpathentry kind="output" path="bin"/>
</classpath>

Windows .classpath:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="src" output="bin/keyword" path="Keywords"/>
	<classpathentry kind="src" output="bin/listener" path="Test Listeners"/>
	<classpathentry kind="src" output="bin/lib" path="Libs"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.core_1.0.0.201801251559.jar">
		<attributes>
			<attribute name="javadoc_location" value="file:/C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/apidocs/com.kms.katalon.core/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/java-client-5.0.4.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/jna-4.1.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/jna-platform-4.1.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/kat-server.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/repackaged-guava-19.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/repackaged-sikuli-api-1.0.2-standalone.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/selenium-leg-rc-3.7.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/selenium-server-standalone-3.7.1.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/lib/testng-6.11.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/net.sf.supercsv.super-csv_2.1.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.poi_3.9.0.v201405241750.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.poi.ooxml_3.9.0.v201405241905.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.poi.ooxml.schemas_3.9.0.v201405241750.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.dom4j_1.6.1.v201312101416.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.io_2.4.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.lang_2.6.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.xmlbeans_2.6.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.google.gson_2.8.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.jsoup_1.7.2.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.mysql.jdbc_5.1.38.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.microsoft.sqlserver.sqljdbc4_4.1.5605.100.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.dbutils_1.6.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.oracle.jdbc.ojdbc7_12.1.0.2.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.postgresql.jdbc41_9.4.1208.jre7.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.eclipse.osgi_3.11.3.v20170209-1843.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.constant_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.eclipse.persistence.eclipselink_2.5.0.RC1.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.selenium-standalone_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/atu.testrecorder.screen-recorder_2.1.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.google.guava_23.0.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.codec_1.7.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.logging_1.2.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.httpcomponents.httpclient_4.5.1.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.httpcomponents.httpcore_4.4.4.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.junit_4.12.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.hamcrest.core_1.3.0.v201303031735.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.beanshell.bsh_2.0.0.0b4.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.ant.launcher_1.9.6.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.core.appium_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.lang3_3.1.0.v201403281430.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.util_1.0.0.201801251559.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.core.webui_1.0.0.201801251559.jar">
		<attributes>
			<attribute name="javadoc_location" value="file:/C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/apidocs/com.kms.katalon.core.webui/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.core.mobile_1.0.0.201801251559.jar">
		<attributes>
			<attribute name="javadoc_location" value="file:/C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/apidocs/com.kms.katalon.core.mobile/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/org.apache.commons.validator_1.5.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.kms.katalon.core.webservice_1.0.0.201801251559.jar">
		<attributes>
			<attribute name="javadoc_location" value="file:/C:/Aplicaciones/Katalon/Katalon_Studio/configuration/resources/apidocs/com.kms.katalon.core.webservice/"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/wsdl4j_1.6.2.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.google.oauth-client.google-oauth-client_1.22.0.jar"/>
	<classpathentry kind="lib" path="C:/Aplicaciones/Katalon/Katalon_Studio/plugins/com.google.http-client.google-http-client_1.22.0.jar"/>
	<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
	<classpathentry kind="output" path="bin"/>
</classpath>


How about deleting it and it will be written again? It has nothing to do with these paths in .classpath file

I’ve tried again using the following steps:
1. Create a project in Windows environment and execute a Test Suite
2. Zip this project into .zip file and then copy it to Linux environment
3. Extract it to Linux folder and execute it using console mode execution.
I observe that .classpath path is GENERATED accordingly for Linux folders upon execution, so there is no need to touch it, just leave it there.

In your case, it might worth trying to delete that .classpath file and try again. Nothing is wrong from my side.

@Alex, i’ve already tried deleting the .classpath file and the same thing happened.

I’ve also made a new project on Windows with one test case which accesses https://www.google.com and writes ‘katalon’ in the search textbox that executes ok, i moved it to linux without the .classpath file and ran it in console mode. The .classpath file is generated accordingly for Linux folders but, as i mentioned earlier, without these entries that are present in the Windows version (I replaced the actual home path with KATALON_HOME):

<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/java-client-5.0.4.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/jna-4.1.0.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/jna-platform-4.1.0.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/kat-server.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/repackaged-guava-19.0.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/repackaged-sikuli-api-1.0.2-standalone.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/selenium-leg-rc-3.7.0.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/selenium-server-standalone-3.7.1.jar"/>
<classpathentry kind="lib" path="KATALON_HOME/configuration/resources/lib/testng-6.11.jar"/>

Now it generates two errors:

[katalon]$ ./katalon -runMode=console -projectPath="/home/jgarcia/TestClassNotFound/TestClassNotFound.prj" -reportFolder="Reports" -reportFileName="report" -retry=0 -testSuitePath="Test Suites/Suite1" -browserType="Chrome"
Starting Groovy-Eclipse compiler resolver.  Specified compiler level: unspecified
131 2.4.7.xx-201611170128-e46 = ACTIVE

--------------------------------------------------------------------------------
Test Suites/Suite1 - Chrome - 20180209_114125............................0/1(0%)
--------------------------------------------------------------------------------

02-09-2018 11:41:28 AM - [START]  - Start Test Suite : Test Suites/Suite1
02-09-2018 11:41:28 AM - [RUN_DATA] - Logging run data 'hostName' with value 'jgarcia - localhost.localdomain'
02-09-2018 11:41:28 AM - [RUN_DATA] - Logging run data 'os' with value 'Linux 64bit'
02-09-2018 11:41:28 AM - [RUN_DATA] - Logging run data 'hostAddress' with value '127.0.0.1'
02-09-2018 11:41:28 AM - [RUN_DATA] - Logging run data 'katalonVersion' with value '5.3.0.1'
02-09-2018 11:41:28 AM - [START]  - Start Test Case : Test Cases/Test1
02-09-2018 11:41:28 AM - [INFO]   - Evaluating variables for test case
02-09-2018 11:41:28 AM - [ERROR]  - Test Cases/Test1 FAILED because (of) org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/home/jgarcia/TestClassNotFound/Scripts/Test1/Script1518186189718.groovy: 21: unable to resolve class org.openqa.selenium.Keys
 @ line 21, column 1.
   import org.openqa.selenium.Keys as Keys
   ^

1 error

02-09-2018 11:41:28 AM - [END]    - End Test Case : Test Cases/Test1
Caught: java.lang.NoClassDefFoundError: org/openqa/selenium/Capabilities
java.lang.NoClassDefFoundError: org/openqa/selenium/Capabilities
        at com.kms.katalon.core.mobile.contribution.MobileDriverCleaner.cleanDrivers(MobileDriverCleaner.java:9)
        at com.kms.katalon.core.driver.internal.DriverCleanerCollector.cleanDrivers(DriverCleanerCollector.java:27)
        at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:87)
        at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:99)
        at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
        at TempTestSuite1518187286099.run(TempTestSuite1518187286099.groovy:34)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.Capabilities
        ... 6 more
Copying report to folder /home/jgarcia/TestClassNotFound/Reports...

--------------------------------------------------------------------------------
Test Suites/Suite1 - Chrome - 20180209_114125..........................1/1(100%)
--------------------------------------------------------------------------------

[katalon]$ echo $?
2


I’m using Katalon Studio 3.5.0 on Windows 10 and CentOS 6.4.
I can share with you my test project if you tell me how to upload it.

open jdk vs oracle jdk should make absolutely no difference on the classpath entries as those classes are no included with the open jdk.

I deleted the .classpath and tried using openjdk. The issues are unchanged.

Katalon$ java -versionopenjdk version "1.8.0_161"OpenJDK Runtime Environment (build 1.8.0_161-b14)OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
02-12-2018 01:37:18 AM - [ERROR]  - Test Cases/GoogleSearch FAILED because (of) org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:file:/data/jenkins/workspace/Katalon/GoogleSearch/Scripts/GoogleSearch/Script1516661589515.groovy: 23: unable to resolve class org.openqa.selenium.Keys @ line 23, column 1.   import org.openqa.selenium.Keys as Keys   ^
1 error
Caught: java.lang.NoClassDefFoundError: org/openqa/selenium/Capabilities02-12-2018 01:37:18 AM - [END]    - End Test Case : Test Cases/GoogleSearchjava.lang.NoClassDefFoundError: org/openqa/selenium/Capabilities	at com.kms.katalon.core.mobile.contribution.MobileDriverCleaner.cleanDrivers(MobileDriverCleaner.java:9)	at com.kms.katalon.core.driver.internal.DriverCleanerCollector.cleanDrivers(DriverCleanerCollector.java:27)	at com.kms.katalon.core.driver.internal.DriverCleanerCollector$cleanDrivers$1.call(Unknown Source)	at TempTestSuite1518399434955.run(TempTestSuite1518399434955.groovy:50)Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.Capabilities	... 4 more
<?xml version="1.0" encoding="UTF-8"?><classpath>	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>	<classpathentry kind="src" output="bin/keyword" path="Keywords"/>	<classpathentry kind="src" output="bin/listener" path="Test Listeners"/>	<classpathentry kind="src" output="bin/lib" path="Libs"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.core_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/net.sf.supercsv.super-csv_2.1.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.poi_3.9.0.v201405241750.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.poi.ooxml_3.9.0.v201405241905.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.poi.ooxml.schemas_3.9.0.v201405241750.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.dom4j_1.6.1.v201312101416.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.io_2.4.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.lang_2.6.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.xmlbeans_2.6.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.google.gson_2.8.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.jsoup_1.7.2.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.mysql.jdbc_5.1.38.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.microsoft.sqlserver.sqljdbc4_4.1.5605.100.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.dbutils_1.6.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.oracle.jdbc.ojdbc7_12.1.0.2.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.postgresql.jdbc41_9.4.1208.jre7.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.eclipse.osgi_3.11.3.v20170209-1843.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.constant_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.eclipse.persistence.eclipselink_2.5.0.RC1.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.selenium-standalone_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/atu.testrecorder.screen-recorder_2.1.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.google.guava_23.0.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.codec_1.7.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.logging_1.2.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.httpcomponents.httpclient_4.5.1.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.httpcomponents.httpcore_4.4.4.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.junit_4.12.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.hamcrest.core_1.3.0.v201303031735.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.beanshell.bsh_2.0.0.0b4.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.ant.launcher_1.9.6.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.core.appium_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.lang3_3.1.0.v201403281430.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.util_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.core.mobile_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/org.apache.commons.validator_1.5.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.core.webservice_1.0.0.201712071001.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/wsdl4j_1.6.2.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.google.oauth-client.google-oauth-client_1.22.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.google.http-client.google-http-client_1.22.0.jar"/>	<classpathentry kind="lib" path="/opt/katalon/Katalon_Studio_Linux_64-5.2.0.1/plugins/com.kms.katalon.core.webui_1.0.0.201712071001.jar"/>	<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>	<classpathentry kind="output" path="bin"/></classpath>

@Jorge García . I managed to get the CLI to run as root. My katalon install is owned by a different user than the jenkins workspace, which is owned by jenkins. Running as root from the jenkins workspace. So i seems to be a permission issue causing a classpath problem. Good luck!

Also I had to install xvfb plugin for jenkins


which also required installing xvfb on the system too
sudo yum install xvfb
Then after all that firefox wasn’t even installed :stuck_out_tongue:
sudo yum install firefox

Now my project is building successfully.

@Cheyenne Gold, you’re right, it’s a permission issue. I put Katalon and the project under the same user and now it works ok. Thank you!