sikuli-java 1.0.1 : Customizing the location of 'libs' where the DLLs are unpacked

Asked by Pathiyil

Hi,

What is the preferred method if someone wants Sikuli to unpack the DLLs in sikuli-java.jar to a location other than into a folder under the location of sikuli-java.jar ? Can SIKULI_LIBS be used for this purpose or is that only in case you moved the libs folder manually after it was unpacked ?

Thanks.

Question information

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

Generally it is recommended to keep the SikuliX stuff completely in one place per system.

Why do you want to separate the jar and the libs folder?

Revision history for this message
Pathiyil (pathiyil) said :
#2

The reason stems from a setup where the JARs are on a read-only filesystem or folder where the runtime does not have access to extract the DLLs.

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

ok, thanks.

I will revise this export stuff anyways with 1.2

For now:
have
SIKULIX_HOME=path-to-the-folder-to-store-the-libs-folder

in environment at runtime

or a Java runtime parameter
-Dsikuli.Home=path-to-the-folder-to-store-the-libs-folder

where the Java parameter is checked first, so it might overwrite an environment setting.

TAKE CARE: the target libs folder must be there already (even empty)

Revision history for this message
Pathiyil (pathiyil) said :
#4

Thanks RaiMan, that solved my question.