JRE7 does not support Sikuli, must download JRE6 update number must be greater than 35
Sikuli Download:
Http://www.cr173.com/soft/52775.html
or refer to http://www.cnblogs.com/dieyaxianju/p/4845123.html.
JDK Download:
jdk1.6 32-bit http://www.9553.com/soft/41474.htm
or http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html search: Jdk-6u39-windows-i586.exe
jdk1.7 64-bit http://www.cr173.com/soft/55503.html
When you click on the JDK installation package, you are prompted by default to ask where the JRE is loaded. C disk is large enough, JDK, JRE, the default installation address, to change the address is also OK
After the JDK installation, you can directly Baidu JDK Configuration tutorial (http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html),
Follow the tutorial to configure the environment variables:
- Computer → properties → advanced system settings → advanced → environment variables
- Create a new java_home variable. Variable value fill in the JDK installation directory (I am E:\Java\jdk1.7.0)
- Look for path variable → edit, enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value, (note that the value of the original path is not at the end of the variable; number, if not, first enter; number and then enter the above code)
- system variable → new CLASSPATH variable, variable value filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
- Verify that the configuration successfully runs the cmd input java-version (there are spaces between Java and-version), and javac-version displays the version information indicating that the installation and configuration were successful.
The Sikuli operation requires a 32-bit 1.6 jdk. However, when trying another UI Automation test, the version of the 1.7 jdk is required. So. When trying to sikuli automation, the computer installs two versions of the JDK at the same time. The 1.6 version of the JDK is followed by the uninstalled, 1.6 JRE reserved: The path under path is configured at 1.7. The Java version is also 1.7. At present, this mode operation Sikuli has not encountered the problem ...
Sikuli Configuration:
In the system environment variable, path needs to include the following:
C:\Program Files\sikuli X\libs
C:\Program Files\java\jre6\bin
In the user environment variable
Sikuli_home=c:\program Files\sikuli x\ (accordingly for Win 64Bit)
On the command line, enter Java-jar "%sikuli_home%sikuli-script.jar"-I. There might be surprises.
Reference
Sikuli official faq:https://answers.launchpad.net/sikuli/+faq/2005
https://answers.launchpad.net/sikuli/+faq/2220
above . Sikuli after installation and configuration, click Sikuli-ide.bat in the Start menu to open Sikuli.
When not running, you can try X:\Program sikuli-ide.bat or sikuli-ide-w.bat under Files\sikuli X
Of course, Sikuli is not guaranteed to be available after startup. Will happen after clicking on Sikuli any button, flash back situation. This problem occurs when the JDK version is incorrect.
If you are free to try running after. Sikuli are normal, can be used.
1.1 Sikuli Installation