Sikuli is not able to recognise object --- Sikuli needs a JRE 6 (Java 7 not supported)

Asked by S

I had problems in installing Sikulu, it was giving the error message as it cannot install with JRE version lessthan 1.6. So I had installed JRE version 1.7 and then installed Sikuli which had installed with out any issues. After installing im trying to record some actions but the its not able to recognise the object.

Can someone please advice whats happening.

Regards
S

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
RaiMan (raimund-hocke) said :
#1

Known problem: Sikuli does not run with Java 7 !!!

You need a JRE 6.

Revision history for this message
S (surya-deactivatedaccount) said :
#2

Hi Thanks a lot for very quick response. If possible can you please provide an url from where I can download JRE 6 please. I really appreciate your help.

Thanks
S

Revision history for this message
RaiMan (raimund-hocke) said :
#3
Revision history for this message
S (surya-deactivatedaccount) said :
#4

Thank you... I did install JRE6, sorry it didnt really help. Still it doesnot recognise a object.

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

have a look at faq 1766

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

you sent me a private mail. This is an excerpt:

.....
File "C:\Saritha\WORKFOLDER\TalkTalk\IPTV\sw\Sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\__init__.py",
.....
java.lang.UnsatisfiedLinkError:
C:\Saritha\WORKFOLDER\TalkTalk\IPTV\sw\Sikuli-r930-win32\Sikuli-r930-win32\Sikuli-IDE\libs\VisionProxy.dll:
Can't find dependent libraries
.....

This is a Sikuli installation problem. You are using the zipped version somewhere down in your folder structure.
If you do this, you have to set the required path and environment entries your self.
What is the reason for not using the installer?

If you wanted to use the latest version, then first install Sikuli with the installer from official download page and then act as mentioned in faq 1766 under **** first steps.

Revision history for this message
Ramprasad (ramprasad-info) said :
#7

I too had similar issue even after installing JRE 6. I enabled Java Run Time Environment for both 1.6 and 1.7 verison in Java control panel(JAVA tab) available in control panel and it worked for me.

Revision history for this message
Filipe Alonso (filipe-alonso) said :
#8

 1. You must use a 32bit JRE version (I use jre-7u4-windows-i586.exe)
 2. Download Sikuli IDE for Windows (I use "Sikuli X r930", portable version)
 3. Unpack it and copy files to your project folder (I renamed it to "sikuli-ide", check image http://i.stack.imgur.com/LSiQV.png)
 4. Add sikuli-script.jar to the Referenced Libraries (Project > Properties > Java Build Path > Libraries, check image http://i.stack.imgur.com/N2SJ8.png)
 5. Set PATH and SIKULI_HOME environment vars (Run > Run Configurations > Environment, check image http://i.stack.imgur.com/HboXk.png)
 6. You're ready to go ;)

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

@ Filipe
This seems to be a setup for running Java apps in Eclipse. That is not the question here.

These people simply want to run the Sikuli-IDE on Windows.
And this definitely crashes with Java 7 when using the capture feature.

Revision history for this message
Filipe Alonso (filipe-alonso) said :
#10

@RaiMan
Indeed, I wanted to reply to other question page :/ my bad...

Eitherway it's strange because i can work it out with JRE 7 despite using it for Java App Development.

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

@ Filipe
... and the capture feature is working for you? (Screen.userCapture())

Revision history for this message
Filipe Alonso (filipe-alonso) said :
#12

Hmmm... capture does, userCapture gets in loop and eventually throws:

Exception in thread "Thread-2" java.lang.StackOverflowError
 at org.sikuli.script.TransparentWindow.setOpacity(TransparentWindow.java:18)
 at java.awt.Window$1.setOpacity(Unknown Source)
 at com.sun.awt.AWTUtilities.setWindowOpacity(Unknown Source)
 at org.sikuli.script.Win32Util.setWindowOpacity(Win32Util.java:80)

I'll try to debug it!

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

@ Filipe

This is exactly what people observe when running the IDE with Java 7.

No need to debug that, it is a known problem: handling of transparent overlay frames has changed from JRE6 to JRE7 and Sikuli has to be adapted to this new situation (which is not the case currently).

But if you find the solution, it is very welcome ;-)

Can you help with this problem?

Provide an answer of your own, or ask S for more information if necessary.

To post a message you must log in.