Classpath problem on Mac


#1

I have installed Katalon Studio 5.3.0 on Mac OS 10.13.2
I created a new sample project “Sample Web UI Testing Project”.
In the Tests Explorer, I opened up Common Test Cases and selected Login
I then clicked on the Run button.
The Job Progress showed a green check, and the “Log Viewer” is empty, Runs shows “0/1”
Clicking on the Console tab shows 14 “unable to resolve class” errors:

com.kms.katalon.core.logging.KeywordLogger

com.kms.katalon.core.configuration.RunConfiguration

com.kms.katalon.core.testcase.TestCaseFactory

com.kms.katalon.core.testobject.ObjectRepository

com.kms.katalon.core.testdata.TestDataFactory

com.kms.katalon.core.exception.StepFailedException

com.kms.katalon.core.webui.contribution.WebUiDriverCleaner

com.kms.katalon.core.mobile.contribution.MobileDriverCleaner

com.kms.katalon.core.reporting.ReportUtil

com.kms.katalon.core.main.TestCaseMain

com.kms.katalon.core.testdata.TestDataColumn

com.kms.katalon.core.testcase.TestCaseBinding

com.kms.katalon.core.driver.internal.DriverCleanerCollector

com.kms.katalon.core.model.FailureHandling

Clearly I am missing something in my setup.
Can you please assist me?

Thank you


#2

I’m having the same problem on macOS and would love any help.


#3

Hello Eric. Are you using any sort of helper app for managing your Groovy install. I am using SDKman and I am wondering if this is part of the problem.
Unfortunately this issue has caused me to abandon Katalon despite its huge potential.
–dave


Unable to resolve class error, all tests failing after upgrading to 7.x
#4

Not that I know of, unless homebrew or npm is involved? I’m considering abandoning too if I can’t develop locally but really don’t want to.

@kazurayam you seem to help out a lot on similar questions—any suggestions for how to fix a classpath problem with the default Katalon install on macOS?


#5

I’ve tried:

  • Checking that I’m using the latest openjdk
  • Fresh install of Groovy
  • Fresh install of Appium and adding that to the preferences
  • Deleting Libs, bin, .classpath, .project then restarting Katalon and refreshing the proejct
  • Setting a project specific groovy compiler version
  • Checking the .classpath file has the correct path to Katalon (Application folder)

#6

Are you sure you have deployed Katalon Studio in the Applications folder like this?


#7

You seem to have a misunderstanding. The distributable file(*.zip on Windows, *.dmg on Mac) of Katalon Studio contains all of the dependencies (Java Runtime Environment, Groovy, Appium) bundled, and the katalon executable will run using the bundled ones. Katalon Studio can run without the Openjdk, Groovy and Appium which you have installed into you machine.


#8

@kazurayam that was my assumption too, so please take the above as a sign of my desperation to try and figure out why something self-contained can’t link to the core class :slight_smile:

I’m at a total loss for what to try, short of nuking my entire OS and reinstalling.


#9

Yep, it’s there.


#10

Leave your OS as is. Remove the Katalon Studio and reinstall it.


#11

Please find the .log file and look at it. There would be some information.

## Katalon Studio logs:

  • Windows logs folder:
    <dir where you deployed KS>\config\.metadata\.log
  • MacOS logs folder:
    file:///Applications/Katalon%20Studio.app/Contents/MacOS/config/.metadata/.log

#12

I did that this morning and still getting the same errors with a fresh install of Katalon from Katalon.com — apologies for not including that.


#13

Do you have any reason to use v5.3.0 — such old version?

How about trying v6.3.3 or v7.0.x?


#14

@kazurayam I checked the log file and nothing there related to the groovy script popped out.


#15

Could you attach .log file to share here?


#16

katalon log file copy.log (203.9 KB)
@kazurayam log file attached


#17

In the firs post you mentioned that you are trying to use v5.3.0.

But in the .log file, at the very first line, I found a line:

katalon.versionNumber=7.0.10
...

Which version are you really working on?


#18

David posted a long time ago citing an older version. I’ve been using the latest—including a fresh install this morning—but have had this problem since whatever the latest release before the big 7.0 rollout was.


#19

Ah, you are eric, not David. Sorry, I was confused.


#20

You said you have the same problem as David, but it is not clear for me what is your problem. Could you show the screenshot which presents Groovy compilation error?