gpt4 book ai didi

java - "Fatal error"在 Sikuli 中,libs 目录不在系统路径上

转载 作者:太空宇宙 更新时间:2023-11-04 12:37:58 25 4
gpt4 key购买 nike

我第一次在 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.

最佳答案

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

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

只需将其与您正在使用的任何 Selenium 版本一起放入您的 Maven pom 中即可。

关于java - "Fatal error"在 Sikuli 中,libs 目录不在系统路径上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37116191/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com