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

最后都变了- 提交于 2019-12-11 13:36:50

问题


I am using sikuli for first time in eclipse. I imported sikuli script jar file into my project and I used screen and pattern classes.

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.

回答1:


To be able to use Sikuli in Eclipse, importing the Jar will not be enough. If you want to have access to Sikuli API, you can use the following dependency:

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



来源:https://stackoverflow.com/questions/37116191/fatal-error-in-sikuli-libs-dir-is-not-on-system-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!