簡體   English   中英

Sikuli中的“致命錯誤”,libs dir不在系統路徑上

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

我在日食中第一次使用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.

為了能夠在Eclipse中使用Sikuli,導入Jar是不夠的。 如果您想要訪問Sikuli API,可以使用以下依賴項:

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

只需將它與您正在使用的Selenium版本一起放入您的maven pom,就在這里。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM