← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689620]: Change where Sikuli loads opencv_java342.dll from

 

Question #689620 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689620

    Status: Open => Answered

RaiMan proposed the following answer:
The background on Windows:
The mentioned DLL is contained in the SikuliX jars and exported at runtime to the mentioned standard folders in %APPDATA%

Putting a folder containing the DLL into the PATH does not help in the
situation outside Eclipse, since it is checked via %APPDATA%, wether the
DLL is available. If not it is tried to export it, which again leads to
the mentioned error.

A suitable workaround should be, to specify the %APPDATA% environment
variable at runtime to point to a folder, that is accessible (it is
created if not already there)

This worked:
set APPDATA=SikulixAppData

which at runtime leads to a folder SikulixAppData created in the users
home folder.

I will setup a complete testcase comparable to your situation and revise
the handling of the APPDATA folder including possibilities to specify
options.

this issue is tracked on GitHub:
https://github.com/RaiMan/SikuliX1/issues/340

Version 2.0.5 should have a solution for your case.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.