← Back to team overview

sikuli-driver team mailing list archive

[Question #141164]: Java Execution

 

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

Hi,

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.