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

Summary changed to:
[Java] image not found using relative path

Description changed to:
****** This problem is solved *****

When I execute the below code i am getting following error:

public class SikuliTest {

        public static void main(String[] args) throws Exception {
     
        Win32Util win=new Win32Util();
        Screen s =new Screen();
     
                win.switchApp("c:\\Program Files\\Mozilla 
Firefox\\firefox.exe");
            win.switchApp("Mozilla Firefox");
           
            s.type("img/Web.png", "www.gmail.com", 0);
        /*    s.type("","Key.ENTER",0);
            s.wait(3);
        */
}

}


Windows utilities loaded.
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/sun/awt/AWTUtilities
        at org.sikuli.script.Win32Util.setWindowOpaque(Win32Util.java:79)
        at org.sikuli.script.ScreenHighlighter.init(ScreenHighlighter.java:174)
        at 
org.sikuli.script.ScreenHighlighter.<init>(ScreenHighlighter.java:287)
        at org.sikuli.script.Screen.initBounds(Screen.java:96)
        at org.sikuli.script.Screen.<init>(Screen.java:108)
        at com.google.test.SikuliTest.main(SikuliTest.java:15)

Running Eclipse
Windows Vista
Env Variables for Java Jre jdk sikuli lib files.

Regards
Siva

-- 
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