sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00820
[Question #142338]: Library not loaded: libcxcore.2.1.dylib while Using Sikuli with Java
New question #142338 on Sikuli:
https://answers.launchpad.net/sikuli/+question/142338
Hi
I am new to Sikuli and trying to write a Sikuli test in Java. When i try to run the program it throws below exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/var/folders/YI/YIZNJftxFx4DpImiFketRl37KJM/-Tmp-/tmplib/libVisionProxy.jnilib: Library not loaded: libcxcore.2.1.dylib Referenced from: /private/var/folders/YI/YIZNJftxFx4DpImiFketRl37KJM/-Tmp-/tmplib/libVisionProxy.jnilib Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1020)
at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
at org.sikuli.script.Finder.<clinit>(Finder.java:20)
at org.sikuli.script.Region.findNow(Region.java:589)
at org.sikuli.script.Region.wait(Region.java:277)
at org.sikuli.script.Region.find(Region.java:235)
at org.sikuli.script.Region.getLocationFromPSRML(Region.java:652)
at org.sikuli.script.Region.click(Region.java:346)
at calenderTests.main(calenderTests.java:26)
I have included the the path '/Applications/Sikuli-IDE.app/Contents/Frameworks' to class path along with Sikuli-script.jar
My program is as below
import org.sikuli.script.*;
public class calenderTests {
public static void main(String[] args) {
Screen s = new Screen();
try{
s.click("/Users/dipeshb/Documents/sikuliPOC/sikulitPOC/images/search.png", 0);
}
catch(FindFailed e){
e.printStackTrace();
}
}
Can anybody suggest me a solution so that I can proceed??
Thanks,
Dipesh
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.