1.0.1 - FileManager.loadLibrary("VisionProxy") throws error

Asked by akbar

Environment - Windows7(32)/Java6, using latest sikuli-java api

-sikuli-java jar and libs(with all DLLs) are under same folder(library)
-added libs folder path to system PATH variable

FileManager.loadLibrary("VisionProxy");

throws following errors,

[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: WinUtil.dll
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might be a problem with needed dependent libraries
E:\XAFTProject\library\libs\WinUtil.dll: Can't find dependent libraries
[error] ResourceLoaderBasic: loadLib: Check, wether a valid Sikuli libs folder is in system path at runtime!
[error] Terminating SikuliX after a fatal error(110)! 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.

So restarted the machine and it worked fine once. But the second time i ran the same script, it failed again with same errors. After that tried quite a few times, but it errors out.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
akbar
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

What "script" are you running and how do you do that?

Since you are using sikuli-java.jar it must be some Java stuff or Jython.

If you have some Java run command, add -Dsikuli.Debug=3 and paste the output.

Revision history for this message
akbar (mohammed-akbar-ali) said :
#2

Yes Java....Here are the debug logs

[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 25AUG2013190532
[debug] ResourceLoaderBasic: check: we are running on arch: x86
[debug] ResourceLoaderBasic: check: using Java at: C:/Program Files (x86)/Java/j
dk1.6.0_38/jre/
[debug] ResourceLoaderBasic: check: Exists libs folder at location of jar? YES:
E:/XAFTProject/library/
[debug] ResourceLoaderBasic: checkLibsDir: E:/XAFTProject/library/libs
[debug] ResourceLoaderBasic: loadLib: WinUtil
[debug] ResourceLoaderBasic: loadLib: Found: WinUtil
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: WinUtil.dll
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might b
e a problem with needed dependent libraries
E:\XAFTProject\library\libs\WinUtil.dll: Can't find dependent libraries
[error] ResourceLoaderBasic: loadLib: Check, wether a valid Sikuli libs folder i
s in system path at runtime!
[error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sen
se 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.
[debug] SikuliXFinal: cleanUp: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#3

do the same after deleting the folder libs

Revision history for this message
akbar (mohammed-akbar-ali) said :
#4

DLLs in libs got renamed because they were downloaded from a shared location, when changed the names to original, it started working. Thanks!