Cant load file on MacOS

Hi all,
I have a problem on MacOS with Katalon. I am using the below code in my project:

Runtime.getRuntime().load0(groovy.lang.GroovyClassLoader.class, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir() + “\External\opencv_java349.dll”)

It work fine with Window but doesn’t work with MacOS. I searched for the solution on google and also changed .dll file to .so file:

Runtime.getRuntime().load0(groovy.lang.GroovyClassLoader.class, com.kms.katalon.core.configuration.RunConfiguration.getProjectDir() + “/External/cv2.cpython-38-darwin.so”)

But it still doesn’t work.

This is message error:
For .dll file:
Screen Shot 2021-03-19 at 10.21.20 AM

For .so file:
Screen Shot 2021-03-19 at 10.14.47 AM

If possible, can someone please provide an example. Thanks