← Back to team overview

sikuli-driver team mailing list archive

[Bug 1227541] Re: [request] sikuli-java.jar should better support having it in additional places besides the setup folder

 

** Changed in: sikuli
   Importance: High => Critical

** Summary changed:

- [request] sikuli-java.jar should better support having it in additional places besides the setup folder
+ [request] sikuli-java.jar should better support having it in additional places besides the setup folder --- fixed in 1.1.0: can be wherever you want

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1227541

Title:
  [request] sikuli-java.jar should better support having it in
  additional places besides the setup folder --- fixed in 1.1.0: can be
  wherever you want

Status in Sikuli:
  Fix Committed

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1227541/+subscriptions


References