Sikuli disappears when Take Screenshot is clicked

Asked by Mattias Andersson on 2012-03-30

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) (Portable version for 32bit Windows. For 64bit Windows, please run the Sikuli-IDE-w.bat instead of Sikuli-IDE.exe. )


Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Mattias Andersson
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

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

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?

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)

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!