[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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
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] ResourceLoaderB
[error] ResourceLoaderB
F:\workspace\
[error] ResourceLoaderB
[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.
pause
com.ists.
here is how my main method looks like
public static void main(String[] args) throws Exception {
if(args.
throw new RuntimeExceptio
}
String file = args[0];
String sheet = args[1];
String testCaseName = args[2];
System.
TestExecutor test = new TestExecutor();
test.
}
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
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | Medium → High |
Changed in sikuli: | |
importance: | High → Critical |
summary: |
[request] sikuli-java.jar should better support having it in additional - places besides the setup folder + places besides the setup folder --- fixed in 1.1.0: can be wherever you + want |
problem here is the libs path not in system path at runtime.
a batch fixing this problem: dp0\lib\ libs;%PATH% sikuli. TestExecutor FileActions.xls FileFunctions TC20001
@echo off
setlocal
set CLASSPATH=
set PATH=%~
java -cp "lib/*" com.ists.
endlocal
BTW: You only need to copy the sikuli-java.jar around. With the above batch, Sikuli internally will finally decide to create a libs folder exactly in this place and copy the correct libs to this folder at runtime.