Sikuli IDE hangs when I click take screen shot
I've installed sikuli rc2 on virtual box(windows xp 32 bit os ). I've installed the following java components
1)Java SE Runtime Environment 6
2)Java Se Development kit 6
But the application closes as soon as i click "take screen shot" button. :(
I'm new to this application.
Can someone please help me out.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Only JRE 6 is needed for Sikuli.
Take care for the needed environment settings.
Use Sikuli-IDE.bat to start the IDE.
If this does not work, add the parameter
-Dsikuli.
to the line in Sikuli-IDE.bat, where finally java is called. You might see more information in command line window.
Already tried rc3?
Revision history for this message
|
#2 |
Same error under winxows XP SP3 x86 with Sikuli rc3 with no information adding that info in Sikuli-IDE.bat in line %JAVA_EXE% -Xms64M -Xmx512M -Dfile.
Please, any other idea?
Revision history for this message
|
#3 |
Try the following in a command line window:
java -jar path-to-
this should open an interactive Jython session ready to process Sikuli (and Jython) statements.
you should get a prompt like
>>>
<enter> means: hit enter
try out:
popup("
should give a popup - click ok.
try out:
capture()<enter>
should come up with the gray overlay saying "Select a Region on the Screen".
Just do it by dragging a region with left mouse button pressed. finally release button.
You should get a .png filename in temp storage.
come back afterwards and tell what happens.
Revision history for this message
|
#4 |
Thanks for the reply RaiMan :)
Pardon me for my ignorance but i just found out that the application does not close as i'd mentioned in my question.
Instead nothing happens when i press capture...ie no gray overlay. When i press alt+shift+c. the application window comes back..
This is what appears in msg window:
[info] Windows utilities loaded.
Exception in thread "capture" java.lang.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
For the command :
java -jar path-to-
i got the reply:
C:\Program Files\Sikuli X>java sikuli-script.jar-i
Exception in thread "main" java.lang.
Revision history for this message
|
#5 |
Ok, with Sikuli X-1.0rc3 you need an additional entry in SystemPath:
path-to-
BTW: when I write path-to-something, you have to translate this into the correct path specification for your system environment ;-)
same goes for:
java -jar path-to-
So try again.
Revision history for this message
|
#6 |
"C:\Program Files\Java\
( Thats system properties>
I'd changed the directory to siluli X before i entered java sikuli-
The reply is the same:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\SGR>java C:\Program Files\Sikuli X\sikuli-
Exception in thread "main" java.lang.
C:\Documents and Settings\SGR>
Revision history for this message
|
#7 |
Standard command line knowledge ;-)
parameters containing blanks have to be enclosed in apostrophes.
java -jar "C:\Program Files\Sikuli X\sikuli-
and you left out -jar
and before -i must be at least a blank
Revision history for this message
|
#8 |
BTW:
your java installation looks strange.
With current java versions it is usually:
C:\Program Files\java\jre6\bin
Do you have the latest version (original from Oracle) installed?
Revision history for this message
|
#9 |
i've reinstalled java... :P
i got the location as
"C:\Program Files\java\
i tried "java -jar "C:\Program Files\Sikuli X\sikuli-
The reply was as follows:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\SGR>java -jar "C:\Program Files\Sikuli X\sikuli-script
.jar" -i
[info] Sikuli vision engine loaded.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Sikuli X\sikuli-
e 1, in <module>
File "C:\Program Files\Sikuli X\sikuli-
25, in <module>
java.lang.
n't find dependent libraries
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at java.lang.
at com.wapmx.
.java:44)
at org.sikuli.
at java.lang.
at java.lang.
at org.sikuli.
at org.sikuli.
at java.lang.
at java.lang.
at org.python.
7)
at java.lang.
at org.python.
at org.python.
nager.java:133)
at org.python.
java:28)
at org.python.
nager.java:122)
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at sikuli.
sikuli\
at sikuli.
t.jar\Lib\
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
mporter.java:161)
at org.python.
ser.__call_
at org.python.
java:47)
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at sikuli$
__init__.py:1)
at sikuli$
ib\sikuli\
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
mporter.java:161)
at org.python.
ser.__call_
at org.python.
java:47)
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.sikuli.
:84)
at org.sikuli.
java.lang.
\Sikuli X\libs\
C:\Documents and Settings\SGR>
Revision history for this message
|
#10 |
Check your system path specification and environment setting %SIKULI_HOME%
Revision history for this message
|
#11 |
Hi Raiman,
Application closes when clicked on"take screenshot" in my system too.
Mine is a WIn XP.
But following ur instructions, i have run below command in command line window:
java -jar "C:\Program Files\Sikuli X\sikuli-
Works fine for me but when i enter the below command
capture()<enter>
The following error is displayed:
:18)
at java.awt.
at com.sun.
at org.sikuli.
at org.sikuli.
Can you please help me in resolving it.
Can you help with this problem?
Provide an answer of your own, or ask sgr for more information if necessary.