← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #220554]: [HowTo] access Java classes when using one's own jars in Sikuli scripts

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, that is not enough ;-)

I come back to my previous -cp suggestion:

on commandline or in some batch file:

set BASE=test.sikuli
set MYCP=%BASE%\wilson_lib\axis2-kernel-1.6.2.jar;%BASE%\wilson_lib\axiom-impl-1.2.13.jar;%BASE%\wilson_lib\other-axis2-or-so.jar

java -cp %MYCP% -jar .... (see above)

running this from the folder that contains the test.sikuli should make
it.

or you might add this to the Sikuli-IDE-w.bat

In the script, you might check the working dir with:
print java.lang.System.getProperty("user.dir")

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