← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #220554]: how to configurate classpath when using my jars in Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ok, then if your structure inside the myown.jar is  com.wilson.input
which contains e.g. a MyClass, then in the script it has to be:

import com.wilson.input as cwi

cwi.MyClass.myClassMethod() # for a static method

or

mc = cwi.MyClass() # make an object
mc.myMethod() # for a (non-static) object method

this is just "pythonic" Java ;-)

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