← Back to team overview

sikuli-driver team mailing list archive

[Question #235975]: Getting error "Fatal Error 110: loading: WinUtil.dll" when running from command prompt

 

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

Hello,

I am getting following error when running from batch file 

==Recieved next Command 'openApp' with Target 'notepad.exe' and Value ''
Executing method 'openApp' with target 'notepad.exe' and value ''
openApp method called with target 'notepad.exe'
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: WinUtil.dll
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might be a problem with needed dependent libraries
F:\workspace\Sikuli\lib\libs\WinUtil.dll: Can't find dependent libraries
[error] ResourceLoaderBasic: loadLib: Check, wether a valid Sikuli libs folder is in system path at runtime!
[error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
Press any key to continue . . .


This is how my batch file looks like :
@echo off
set CLASSPATH=
java -cp "lib/*" com.ists.sikuli.TestExecutor FileActions.xls FileFunctions TC20001
pause

com.ists.sikuli.TestExecutor is main class that takes three params i.e. file, sheet, and testcase name

here is how my main method looks like

public static void main(String[] args) throws Exception {
		if(args.length<2){
			throw new RuntimeException("Arguments less than 3 - Can not continue with execution");
		}
		String file = args[0];
		String sheet =  args[1];
		String testCaseName = args[2];
		System.out.printf("Executing testcase %s defined in sheet %s and in file %s\n", args[2], args[1], args[0]);
		TestExecutor test = new TestExecutor();
		test.executeTestCase(file, sheet, testCaseName);
	}


When i run same thing from eclipse everything works perfectly.

I have following under lib
- my compiled jar
- sikuli-java.jar
- other jars not related to sikuli 
- and sikuli libs folder

I can see "WinUtil.dll" file present under lib/libs/ folder

Please help me in resolving this issue.

Thanks
Gulshan


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