sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23325
Re: [Question #242128]: how to run java source program in command prompt
Question #242128 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242128
RaiMan proposed the following answer:
Uuups, things are messed up a little bit:
So I guess your "simple sikuli java program in notepad" is a Sikuli
script like this:
find("some_image.png")
click("some_other_image.png")
...
which is Jython/Python language (not Java).
When I am right, then you have to name your script:
HelloWorld.py
and wrap it into a folder
HelloWorld.sikuli
together with the images, that might be used in the script.
to run this:
C:\Program Files\Sikuli X>java -jar sikuli-script.jar -r HelloWorld.sikuli
If I am not right, and it is really a Java program, then my comment #1 is applicable and the final usage would be:
C:\Program Files\Sikuli X>java -cp sikuli-script.jar HelloWorld
putting sikuli-script.jar on the class path and running the compiled
class file HelloWorld.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.