简体   繁体   English

Sikuli中的“致命错误”,libs dir不在系统路径上

[英]“Fatal error” in Sikuli, libs dir is not on system path

I am using sikuli for first time in eclipse. 我在日食中第一次使用sikuli。 I imported sikuli script jar file into my project and I used screen and pattern classes. 我将sikuli脚本jar文件导入到我的项目中,并使用了屏幕和模式类。

I am getting below error 我收到了以下错误

[error] ResourceLoaderBasic: checkLibsDir: libs dir is not on system path: D:\libs
[action] ResourceLoaderBasic: checkLibsDir: Please wait! Trying to add it to user's path
[info] runcmd: reg QUERY HKCU 
[info] runcmd: reg QUERY HKEY_CURRENT_USER\Environment /v PATH 
[error] ResourceLoaderBasic: checkLibsDir: Logout and Login again! (Since libs folder is in user's path, but not activated)
[error] Terminating SikuliX after a fatal error! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.

To be able to use Sikuli in Eclipse, importing the Jar will not be enough. 为了能够在Eclipse中使用Sikuli,导入Jar是不够的。 If you want to have access to Sikuli API, you can use the following dependency: 如果您想要访问Sikuli API,可以使用以下依赖项:

<dependencies>
    <dependency>
      <groupId>com.sikulix</groupId>
      <artifactId>sikulixapi</artifactId>
      <version>1.1.0</version>
    </dependency>
  </dependencies>

Just get that into your maven pom together with whatever Selenium version you're using and here you go. 只需将它与您正在使用的Selenium版本一起放入您的maven pom,就在这里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM