本文介绍了“致命错误"指的是“错误".在Sikuli中,libs dir不在系统路径上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我第一次在日食中使用sikuli.我将sikuli脚本jar文件导入到我的项目中,并使用了屏幕和图案类.
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.
我遇到错误了
[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,可以使用以下依赖项:
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>
只需将其与您正在使用的任何Selenium版本一起放入您的Maven pom,然后就可以使用了.
Just get that into your maven pom together with whatever Selenium version you're using and here you go.
这篇关于“致命错误"指的是“错误".在Sikuli中,libs dir不在系统路径上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!