← Back to team overview

sikuli-driver team mailing list archive

[Question #224814]: There is an error when running the sikuli for java program:HelloWorldExample,the error shows...jniopencv_core.dll: Can't find dependent libraries

 

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

public class HelloWorldExample {
	public static void main(String[] args) throws MalformedURLException{
	browse(new URL("http://code.google.com";));
		ScreenRegion s = new DesktopScreenRegion(); 

	    Target imageTarget = new ImageTarget(imageURL); 
	    
	    // Wait for the target to become visible on the screen for at most 5 seconds                
	    // Once the target is visible, it returns a screen region object corresponding            
	    // to the region occupied by this target 
	    ScreenRegion r = s.wait(imageTarget,5000); 
	    
	 // Display "Hello World" next to the found target for 3 seconds 
	    Canvas canvas = new DesktopCanvas();
	    canvas.addLabel(r, "Hello World").display(3); 
	    
	 // Click the center of the found target 
	    Mouse mouse = new DesktopMouse(); 
	    mouse.click(r.getCenter()); 
	}

}

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