Sikuli not working on Windows10

Asked by Pramendra

Hi
I have Windows 10 OS, SIkuli Stable version and Java jre-7u51-windows-i586.
When i tried launching IDE using runIDE.cmd, SIkuli IDE is not launching.

Is windows 10 is working for Sikuli?

Thanks

Question information

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

I will only start testing with Win10 after my vacation beginning mid of August.

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

already tried with 1.1.0 ?

Revision history for this message
皇甫春峰 (xpnsau) said :
#3

I think you can not judge the issue for the version of OS.
1.You should write java or jython code to check if sikuli is OK or not. Use eclipse to add the sikuli-script.jar to extended jar path,
and import the module...
2.If you want to use IDE, you should use the jdk1.6 32bit.

:)
Thanks,
Huangfu chunfeng

Revision history for this message
Pramendra (pramendra-ursfrnd) said :
#4

@RaiMan (raimund-hocke) . yes, 1.1.0 also not working, IDE window itself is not showing up when i am clicking runsikulix.cmd file.
I installed successfully using sikuli 1.1.0 set.jar

I will give try with jdk 1.6 32bit as xpnsau saying.

Thanks both.

Revision history for this message
Pramendra (pramendra-ursfrnd) said :
#5

@(xpnsau) , jdk 1.6 will not work with sikuli 1.1.0.
With Sikuli 1.0.1 + JDK 1.6, still sikuli IDE is not launching in Win10.

Revision history for this message
皇甫春峰 (xpnsau) said :
#6

@Pramendra

I think you should use java code to do a simple test.

1.Add the sikuli.jar to your classpath
2.Run the program in the console

Program.java
import org.sikuli.script.*;

public class Program {

 public static void main(String[] args) {

  //App.open("c:\\Program Files\\Mozilla Firefox\\Firefox.exe")
  Screen s=new Screen();
  App app=new App("calc.exe");
  app.open();
    }
}

3.C:\Users\huangc11\Desktop>java Program #Check the calc is run or not
[log] App.open [8536:calc.exe]

Revision history for this message
皇甫春峰 (xpnsau) said :
#7

Add the console output for my classpath
CLASSPATH=.;C:\Program Files (x86)\Java\jdk1.6.0_45\lib\dt.jar;C:\Program Files (x86)\Java\jdk1.6.0_
45\lib\tools.jar;C:\Users\huangc11\Desktop\sikulixapi.jar;C:\Users\huangc11\Desktop\sikulixlibswin.j
ar;
CommonProgramFiles=C:\Program Files\Common Files

Revision history for this message
Pramendra (pramendra-ursfrnd) said :
#8

Hi xpnsau

I did as you mentioned above and i am getting below message and calc.exe is not opening.

[log] App.open [-1:calc.exe]

Hope this will help. What is "-1" refer here?
When you ran , i saw "8536".

Thanks

Revision history for this message
Pramendra (pramendra-ursfrnd) said :
#9

@xpnsau.
also what is "sikulixlibswin.jar;" file you mentioned above? I am not finding this file after installing Sikuli 1.1.0.
Is it required? Without this file, i ran the sample java code and got error "-1" as mentioned above.

Besides "sikulixlibswin.jar" , Rest what you mentioned, i added in classpath.

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

@Pramendra
I suppose,
- you have used the latest 1.1.0 from the nightly build page (2015-07-24)
- have some Java 7 or 8 running
- purged everything from previous Sikuli installs and/or trials
- run setup in a fresh directory with at least option 1 for Python
- and the setup told you about success

In a command window run
java -jar <path-to-your>/sikulix.jar

... and the SikuliX IDE should start up. Before doing anything else, you should just play around with it.

... and ignore xpnsau's comments: he has some non-standard setup.

Revision history for this message
Pramendra (pramendra-ursfrnd) said :
#11

@RaiMan (raimund-hocke)
Thanks for response.
My issue was resolved.

JRE is enough for W8.1/7 but not for W10. For Win10, we must install JDK, only JRE installation is not enough.

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

Ok, thanks for the information.

In fact, this is not intended, since in any case SikuliX should run with a JRE only.

I will make it a bug.