问题描述
我正在运行Windows 7 64位机器。我在PROGRAM x86路径中安装了32位版本的JRE6。我在我的窗口中配置了我的JAVA_PATH环境变量,指向C:\Program Files(x86)\ Java \ _jre6和PATH变量来保存C:\Program Files(x86)\Sikuli X \ libs; \\ ;; C:\Program Files(x86)\ Java \\\\\\\\\\请不要问我为什么,因为那是很多人在博客上建议的,我只是跟着它。
I am running a windows 7 64 bit machine. I installed JRE6 of 32 bit version in the PROGRAM x86 path. I have configured my JAVA_PATH environment variable in my windows to point to "C:\Program Files (x86)\Java\jre6" and the PATH variable to hold "C:\Program Files (x86)\Sikuli X\libs\;C:\Program Files (x86)\Java\jre6\bin\". Please dont ask my why, Because that is wat a lot of people suggested over the blog and i Just followed it.
我在eclipse中创建了一个新项目并添加了 sikuli-script.jar和JRE6细节。当我运行基本程序时,我收到以下错误消息。
I Created a new project in eclipse and added the "sikuli-script.jar" and the JRE6 details . When I run a basic program, I am getting the below error message.
import org.sikuli.script.*;
public class TestSikuli {
public static void main(String[] args) {
Screen s = new Screen();
try{
s.click("imgs/spotlight.png", 0);
s.wait("imgs/spotlight-input.png");
s.type(null, "hello world\n", 0);
}
catch(FindFailed e){
e.printStackTrace();
}
}
}
[info]已加载Windows实用程序。
线程main中的异常java.lang.UnsatisfiedLinkError:C:\ Users \ anantha.navaneethago \ AppData \ Local \ Temp \ tmplib \ VisualProxy.dll:找不到依赖库
at java.lang.ClassLoader $ NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
[info] Windows utilities loaded.Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\anantha.navaneethago\AppData\Local\Temp\tmplib\VisionProxy.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source)
Everyone /每个博客只是为了确保Windows环境变量而已。但我已经完成了所提到的事情。现在我仍然收到错误消息。请给我任何帮助。
Everyone/Every blog just to ensure the windows environment variable only. But I have done what was mentioned. Now still I am getting the error message. Any help on this please.
推荐答案
- 你必须使用32位JRE版本(我使用jre- 7u4-windows-i586.exe)
- 下载适用于Windows的Sikuli IDE(我使用Sikuli X r930,便携版)
- 打开包装并打开包装将文件复制到项目文件夹(我将其重命名为sikuli-ide,检查图像 )
- 将sikuli-script.jar添加到引用的库(项目>属性> Java构建路径>库,检查图片 )
- 设置PATH和SIKULI_HOME环境变量(运行>运行配置>环境,检查图像 )
- 你准备好了;)
- You must use a 32bit JRE version (I use jre-7u4-windows-i586.exe)
- Download Sikuli IDE for Windows (I use "Sikuli X r930", portable version)
- Unpack it and copy files to your project folder (I renamed it to "sikuli-ide", check image )
- Add sikuli-script.jar to the Referenced Libraries (Project > Properties > Java Build Path > Libraries, check image )
- Set PATH and SIKULI_HOME environment vars (Run > Run Configurations > Environment, check image )
- You're ready to go ;)
这篇关于Sikuli Windows 7 64位:获取VisionProxy.dll:无法找到依赖库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!