Sikuli disappears when Take Screenshot is clicked

Asked by Mattias Andersson

Sikuli disappears/close down when Take Screenshot is clicked or any of the other alternativ Click, doubleClick, rightClivk, hover etc.. Do I miss something if you see the details below?

Sikuli X-1.0rc3 (r905)

Java(TM) 6 Update 31
Java(TM) 7
Java(TM) SE Development Kit 7

Windows 7 Enterprise 32-bit

Have tried both
# Sikuli-X-1.0rc3 (r905)-win32.exe (Self-extracting installer. For 32bit & 64bit Windows.)
# Sikuli-X-1.0rc3 (r905)-win32.zip (Portable version for 32bit Windows. For 64bit Windows, please run the Sikuli-IDE-w.bat instead of Sikuli-IDE.exe. )

Regards
Mattias

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Mattias Andersson
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

-- make sure, Sikuli uses Java 6 (not yet running with Java 7)

Revision history for this message
Mattias Andersson (mattias-andersson) said :
#2

Thanks for your reply.

In Sikuli-IDE.bat i have following path to Java 6 JAVA_EXE="C:\Program Files\Java\jre6\bin\java.exe" i have also tried JAVA_EXE="%PROGRAMFILES(X86)%\Java\jre6\bin\java.exe" without success.

Do I need to verify this anywhere else?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

OK, then Java 6 should be used as JVM.

The second thing is the system path entry. check wether
C:\Program Files\Java\jre6\bin\

is in the system path

This is needed to find a java DLL for the transparent window handling.

(This should have normally been implemented by the Sikuli installer)

Revision history for this message
Mattias Andersson (mattias-andersson) said :
#4

Hi RaiMan,

I uninatalled
- Java(TM) 7
- Java(TM) SE Development Kit 7

and then installed
- Java(TM) SE Development Kit 6 Update 31
and Sikuli started to work.

Thanks for your help!