【问题标题】:"Fatal error" in Sikuli, libs dir is not on system pathSikuli 中的“致命错误”,libs 目录不在系统路径上
【发布时间】:2016-05-09 12:45:09
【问题描述】:

我第一次在 Eclipse 中使用 sikuli。我将 sikuli 脚本 jar 文件导入到我的项目中,并使用了屏幕和模式类。

我遇到了错误

[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.

【问题讨论】:

  • 如果您不知道错误原因或解决方案,请使用 3 调试级别再次运行
  • 很明显,您的 PATH 中缺少 D:\libs(如错误日志中的提示)。如果您不知道如何添加,请谷歌如何添加 PATH 条目。

标签: java selenium automation sikuli


【解决方案1】:

为了能够在 Eclipse 中使用 Sikuli,仅导入 Jar 是不够的。如果你想访问 Sikuli API,你可以使用以下依赖:

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

只需将它与您使用的任何 Selenium 版本一起放入您的 maven pom 中即可。

【讨论】:

    猜你喜欢
    • 2012-08-24
    • 1970-01-01
    • 2016-04-10
    • 1970-01-01
    • 2014-10-31
    • 2014-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多