New question #264423 on Sikuli:
https://answers.launchpad.net/sikuli/+question/264423

Hi,
I installed the latest version of Sikulix and am running Jdk 1.8.0_40. 
I compiled a small java program as follows:
javac -cp c:\sikulix\sikulix.jar Test.java

When executing the compiled program, however, I get a NoClassDefFoundError for 
FindFailed:
 java.lang.ClassNotFoundException: org.sikuli.script.FindFailed

How can I fix this problem? I have attached below the java code. I tried using 
different jars e.g. sikuli-script.jar, sikuli-java.jar but this did not make 
any difference.

Thanks,

Lobsang

import org.sikuli.script.*

public class Test {

        public static void main(String[] args) {
                Screen s = new Screen();
                try{
                        s.doubleClick("googleIcon.png", 0);
                        s.wait("addressBar.png",10);
                                                s.click("addressBar.png",0);
                        s.type(null, "www.google.com\n", 0);
                }
                catch(FindFailed e){
                        e.printStackTrace();
                }

                }
}

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to