sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36195
Re: [Question #280291]: Java Sikuli program not running from command line
Question #280291 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/280291
Status: Open => Answered
RaiMan proposed the following answer:
supposing it is 1.1.0:
--- class path only this:
C:\Workspace>java -cp "C:\sikulix\sikulixapi.jar" -jar DemoSikuli.jar
what is the content of:
C:\Workspace\DemoSikulix\DemoSikulix\lib\*
... if it is content not related to SikuliX, then it can be on -cp additionally (e.g. jars needed for your app)
Generally: with 1.1.0+ nothing else than sikulixapi.jar is needed on
java class path!
Java system stuff should never be referenced on the class path, to avoid
inconsistencies.
--- system path:
... should NOT contain any reference to any Sikuli/SikuliX stuff!
--- I have installed Sikluix with option 2 for java and have all jars in project/lib folder as wells in C:\sikulix folder
SikuliX stuff should only be in one folder (e.g. c:\sikulix) and should not be moved around.
With app jars, it should either be referenced in the project settings, the java class path or should be packed into the app jar (so called fat jar)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.