[1.0] Windows: sikuli-ide.cmd: SIKULIX_HOME seems to be invalid

Bug #1182764 reported by smrk28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

unable to lunch Sikuli IDE from Sikuli-IDE.batch and Sikuli-IDE-w.batch
getting following error.
"< was unexpected at this time"

able to launch Sikuli IDE.exe succesfully, make and run script for IDE, but unable to execute script from self executable.

 i am using sikuli-r930-win32

Pls help!

Revision history for this message
RaiMan (raimund-hocke) wrote :
Revision history for this message
smrk28 (syedmoonisraza) wrote :

Hi,
I am facing same problem with SikuliX.1.0.0.

Java version is 1.7 and still unable to lunch IDE.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-ide.cmd
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
ECHO is off.
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\
+++ this Sikuli version is 32-Bit
< was unexpected at this time.

regards

Revision history for this message
RaiMan (raimund-hocke) wrote :

That is really strange: I am missing the last message from the command file:
+++ Trying to start Sikuli IDE with ... java version ...

 In folder
D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\

try the following:

sikuli-script.cmd d:3 -i

and report the output

Revision history for this message
smrk28 (syedmoonisraza) wrote :

Folllwoing are the output for these command

i had removed the sowftware key also...
////////////////////////////////////////////////

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-ide.cmd d:3 -i
-Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=-i
ECHO is off.
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\
+++ this Sikuli version is 32-Bit
< was unexpected at this time.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>

Revision history for this message
RaiMan (raimund-hocke) wrote :

Sorry, but I asked you to use:

sikuli-script.cmd d:3 -i

Revision history for this message
smrk28 (syedmoonisraza) wrote :

sorry..this is the output !

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-script.cmd d:3 -i
-Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=-i
-i
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\
+++ this Sikuli version is 32-Bit
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
< was unexpected at this time.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>

Revision history for this message
RaiMan (raimund-hocke) wrote :

That is really strange:

using the same command on my Win7 32-Bit I get the following output:

Look at line 2 at the end: this is how it should be.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-script.cmd d:3 -i
-Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3
-i
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\
+++ this Sikuli version is 32-Bit
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
+++ trying to start Sikuli Script

Since you already had the problem with the RC3 .bat files, it might be that you have some encoding problems on your system.

Revision history for this message
smrk28 (syedmoonisraza) wrote :

I have tried it on two machines, lab PC and my work system (win XP SP3).
same error at both places.

Is there any way to debug or look into this encoding problem?

I had used RC3 on personla labtop few weeks back and it was working fine.

Currently, i am trying to explore sikuli as an option for GUI automation.

Revision history for this message
RaiMan (raimund-hocke) wrote :

ok, try the following in your folder D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\

java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -jar sikuli-ide.jar

Revision history for this message
RaiMan (raimund-hocke) wrote :

BTW: Sikuli currently probably is the best free GUI automation tool.

... and if ever get it working, use the new version ;-)

Revision history for this message
smrk28 (syedmoonisraza) wrote :

No Doubt, it is simple and best tool :) ! better than Autoit etc

following is the output..!

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>java -Xms64M -Xmx512M -Dfile.encoding=UTF
-8 -Dsikuli.Debug=3 -jar sikuli-ide.jar
[debug] Running on Java 7 (1.7.0_17-b02)
[debug] init user preferences
[debug] locale: en_US
[debug] Screen static initScreens
[I18N] menuShowThumbs
[debug] Redirect stdout/stderr to console.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Yes, thats how it should be...

... but did the IDE window come up?

Revision history for this message
smrk28 (syedmoonisraza) wrote :

no still IDE is not launched... :( !

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
summary: - error "< was unexpected at this time"
+ [1.0] Windows: sikuli-ide.cmd: error "< was unexpected at this time"
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.0] Windows: sikuli-ide.cmd: error "< was unexpected at this time"

ok, then you can try the following:

make a command file e.g.

mySikuli.cmd

with this content:
SETLOCAL
set SIKULIX_HOME=D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32
PATH=%SIKULIX_HOME%libs;%ProgramFiles%\Java\jre7\bin;%PATH%
java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -jar %SIKULIX_HOME%\sikuli-ide.jar
ENDLOCAL

and come back with the result.

Revision history for this message
RaiMan (raimund-hocke) wrote :

if it still does not launch use this java command in the command file:

java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -Dsikuli.console=false -jar %SIKULIX_HOME%\sikuli-ide.jar

though folded here must all be on one line

look for errors in the command line window.

Revision history for this message
smrk28 (syedmoonisraza) wrote :

Hi,

I have tried both option, but not successful following are the output.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>mysikuli.cmd

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>SETLOCAL

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>set SIKULIX_HOME=D:\Tools\sikuli\Sikuli-I
DE-1.0.0-Win32
< was unexpected at this time.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>PATH=D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win
32libs;C:\Program Files\Java\jre7\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\sy
stem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell
\v1.0;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Mic
rosoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\
Binn\VSShell\Common7\IDE\;C:\Program Files\Rational\ClearCase\bin;C:\Program Fil
es\Rational\common;C:\Program Files\Windows Imaging\;.\jre1.5.0_11\bin;..\..\jre
\1_5_0\bin;.\lib;.\lib\WEBCLIENT_DIST\xulrunner;.\lib\WEBCLIENT_DIST\webclient_2
_0_a9\bin;.\lib\WEBCLIENT_DIST\webclient_2_0_a9\bin\win32\bin;c:\program files\a
utomated qa\testcomplete 7\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;
C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C
:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VS
Shell\Common7\IDE\;C:\MinGW\bin;<SystemFolder>;<SystemFolder>\wbem

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>mysikuli2.cmd

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>java -Xms64M -Xmx512M -Dfile.encoding=UTF
-8 -Dsikuli.Debug=3 -Dsikuli.console=false -jar \sikuli-ide.jar
Error: Unable to access jarfile \sikuli-ide.jar

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>

Revision history for this message
smrk28 (syedmoonisraza) wrote :

Hi RaiMan,

Finally some progress in this problem.

after adding following path in my system PATH variable, i am able to launch Sikuli-IDE with your commands.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\libs

Now, IDE is getting launched with both of these new cmd files...

test1.cmd

SETLOCAL
set SIKULIX_HOME=D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32
PATH=%SIKULIX_HOME%libs;%ProgramFiles%\Java\jre7\bin;%PATH%
java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -jar %SIKULIX_HOME%\sikuli-ide.jar
ENDLOCAL

test2.cmd

java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -Dsikuli.console=false -jar %SIKULIX_HOME%\sikuli-ide.jar

can, ypu please, help me to conclude this problem now ?

Or how can i execute sikuli executable files without launcing IDE ?

Revision history for this message
smrk28 (syedmoonisraza) wrote :

getting following error on running IDE or script.

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-ide.cmd
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
ECHO is off.
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32
+++ SIKULIX_HOME seems to be invalid
+++ ended with some errors

D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32>sikuli-script.cmd
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
ECHO is off.
+++ using as SIKULIX_HOME: D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32
+++ SIKULIX_HOME seems be invalid
+++ ended with some errors

RaiMan (raimund-hocke)
tags: added: windows-startup
Changed in sikuli:
importance: Medium → Critical
RaiMan (raimund-hocke)
summary: - [1.0] Windows: sikuli-ide.cmd: error "< was unexpected at this time"
+ [1.0] Windows: sikuli-ide.cmd: SIKULIX_HOME seems to be invalid
Changed in sikuli:
milestone: none → 1.1.0
Revision history for this message
smrk28 (syedmoonisraza) wrote :

Hi Raiman,

Please, suggest some workaound to overcome this issue ! It will help me to use it for my project.

regards,
Syed

Revision history for this message
RaiMan (raimund-hocke) wrote :

Sorry, but the solution in comment #14 has an error.
(missing the \ in PATH=%SIKULIX_HOME%libs; ... )

It must be:

make a command file e.g.

mySikuli.cmd

with this content:
SETLOCAL
set SIKULIX_HOME=D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32
PATH=%SIKULIX_HOME\%libs;%ProgramFiles%\Java\jre7\bin;%PATH%
java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.Debug=3 -jar %SIKULIX_HOME%\sikuli-ide.jar
ENDLOCAL

No need to have D:\Tools\sikuli\Sikuli-IDE-1.0.0-Win32\libs additionally in system Path.

RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.