sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03915
[Question #164476]: Java Error: UnsatisfiedLinkError on Mac Eclipse
New question #164476 on Sikuli:
https://answers.launchpad.net/sikuli/+question/164476
Hello,
I am writing the simple Sikuli Test based on Java and Sikuli-Script API.
Code:
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Region;
import org.sikuli.script.Screen;
public static void main(String args[]) throws FindFailed{
Region r = mew Region(1000,0,1000,1000);
Pattern p = new Pattern("/File/Path/Here");
r.exists(p);
}
The error message is below:
java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib on classpath
at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:118)
at com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:101)
at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.<clinit>(Finder.java:28)
at org.sikuli.script.Region.doFind(Region.java:769)
at org.sikuli.script.Region$RepeatableFind.run(Region.java:1160)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:1131)
at org.sikuli.script.Region.exists(Region.java:439)
at org.sikuli.script.Region.exists(Region.java:428)
at SikuliTest.main(SikuliTest.java:10)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0()J
at org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0(Native Method)
at org.sikuli.script.natives.FindInput.<init>(FindInput.java:39)
at org.sikuli.script.Finder.<init>(Finder.java:21)
at org.sikuli.script.Region.doFind(Region.java:769)
at org.sikuli.script.Region$RepeatableFind.run(Region.java:1160)
at org.sikuli.script.Region$Repeatable.repeat(Region.java:1131)
at org.sikuli.script.Region.exists(Region.java:439)
at org.sikuli.script.Region.exists(Region.java:428)
at SikuliTest.main(SikuliTest.java:10)
The code works well on Windows. So, I am thinking it would be the configuration on mac machine. I did set the build path and import the sikuli-script.jar into the library. And, I put the Sikuli-IDE in the Application Folder. Jave version:1.6
Please advice. Any help is appreciated.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.