0

I have sikuli file which defined some classes in it. What I want to do is to use these classes in my own java program.

Any ideas on how to implement this?

xuqin1019
  • 202
  • 3
  • 12
  • 1
    Have you looked in [Sikulis FAQ - How to use Sikuli Script in your JAVA programs](http://sikuli.org/docx/faq/030-java-dev.html)? – Keppil Jul 17 '12 at 08:52
  • yes, but what Sikuli document tells us is how we can use sikuli api in java program. And we know that Sikuli is writern with java . What I mean here is that I have a sikuli file . And I want to use the classes defined in sikuli file directly in java program. I think It's total diferent cases – xuqin1019 Jul 17 '12 at 09:00

1 Answers1

0

Look at the files in a working Sikuli directory ie HelloWorld.sikuli. Sikuli scripts are written in jython, not java. A technicality, but it is important to understand that your Sikuli file is a .py not a .java. The directory will also contain a .class file which is the compiled Jython machine code. The reference here shows how to use jython in java.

spearson
  • 1,016
  • 8
  • 18