← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #187539]: Is it possible to include the Sikuli required DLL files with a Java script?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
If you want Windows to find dll's somewhere else than in the working
directory/current folder, then you have to specify the folder in the
%PATH%.

This has to be either set globally in the Windows settings or can be done locally if you are running e.g. a bat/cmd. 
So this depends on how your users have to run your .jar.

Since you seemed to be a Java programmer, I suggested the above very elegant solution:
-- place the zipped content of the libs folder somewhere in the internet (e.g. Dropbox)
-- in your .jar check, wether a Sikuli-libs folder is present in the user temp directory
-- if yes, check, wether the folder is in the %PATH%
-- if both is true: just run your stuff
-- if the folder is not there: download it and unzip to user/temp/Sikuli-libs
-- if the folder is not in %PATH%, just add it

This all could either be done in a batch file or in your .jar.

You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.