使用sikuli-script.jar时Sikuli UnsatisfiedLinkError [英] Sikuli UnsatisfiedLinkError when using sikuli-script.jar

查看:108
本文介绍了使用sikuli-script.jar时Sikuli UnsatisfiedLinkError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Windows 7 32位,安装了Java JRE6 31并使用了Sikuli X 1.0rc3。我想用这样的sikuli-script.jar启动测试:

I'm on Windows 7 32bit, Java JRE6 31 installed and using Sikuli X 1.0rc3. I want to launch a test with sikuli-script.jar like this:

java -jar c:\sikuli\sikuli-script.jar test.sikuli

我收到的是这条错误消息:

All I get is this error message:

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError:C:\sikuli\libs\VisionProxy.dll: Can't find dependent libraries

我已经设置了所需的所有环境变量,所以我的PATH看起来像这样:

I have set all the environment variables needed, so my PATH looks like this:

PATH=...;C:\sikuli\libs;C:\Program Files\Java\jre6\bin
SIKULI_HOME=C:\sikuli

我可以使用IDE并在那里启动测试等但只有当我使用 Sikuli-IDE.exe sikuli-ide.bat sikuli-ide.jar 也不起作用。始终与上面的错误相同。所以我认为在.exe文件的构建过程中他们添加了一些魔法,但我无法弄清楚它是什么。

I can use the IDE and launch the tests there etc. But only if I use the Sikuli-IDE.exe the sikuli-ide.bat and sikuli-ide.jar don't work either. Always with the same error from above. So I think in the build process of the .exe file they added some magic, but I can't figure out what it is.

有人有类似的问题吗?甚至解决方案?

Does somebody have a similar problem? Or even a solution?

正如我所写下面,它与我的新电脑开箱即用。 :D但也许我的解决方案可以帮助某人。

As I wrote below, it works out of the box with my new computer. :D But maybe my solution can help someone.

Sikuli团队使用 Launch4J 构建 Sikuli-IDE.exe 超出 sikuli-ide.jar 。他们使用这个配置文件。我稍微修改了它并创建了一个 Sikuli-script.exe 。这很简单,但遗憾的是我丢失了配置文件。

Sikuli Team uses Launch4J to build the Sikuli-IDE.exe out of the sikuli-ide.jar. They use this config file. I modified it slightly and created a Sikuli-script.exe. It was pretty simple but I lost the config file unfortunately.

希望我能提供帮助!

推荐答案


  1. 你必须使用32位JRE版本(我使用jre-7u4-windows-i586.exe)

  2. 下载适用于Windows的Sikuli IDE(我使用Sikuli X r930,便携版)

  3. 解压缩并将文件复制到项目文件夹(我将其重命名为sikuli-ide,查看图片htt + p://i.stack.imgur.com/LSiQV.png )

  4. 将sikuli-script.jar添加到引用的库(项目>属性> Java构建路径>库,检查图像 http://i.stack.imgur.com/N2SJ8.png

  5. 设置PATH和SIKULI_HOME环境变量(运行>运行配置>环境,检查图像 http://i.stack.imgur.com/HboXk。 png

  6. 你准备好了;)

  1. You must use a 32bit JRE version (I use jre-7u4-windows-i586.exe)
  2. Download Sikuli IDE for Windows (I use "Sikuli X r930", portable version)
  3. Unpack it and copy files to your project folder (I renamed it to "sikuli-ide", check image htt+p://i.stack.imgur.com/LSiQV.png)
  4. Add sikuli-script.jar to the Referenced Libraries (Project > Properties > Java Build Path > Libraries, check image http://i.stack.imgur.com/N2SJ8.png)
  5. Set PATH and SIKULI_HOME environment vars (Run > Run Configurations > Environment, check image http://i.stack.imgur.com/HboXk.png)
  6. You're ready to go ;)

这篇关于使用sikuli-script.jar时Sikuli UnsatisfiedLinkError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆