← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203597]: Sikuli ide crashes when any action with camera is clicked

 

Question #203597 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203597

    Status: Open => Answered

RaiMan proposed the following answer:
--- JRE
must be JRE 6 and running java -version from command line must say, that it is 1.6 (latest version is 1.6.0_33)
Standard installation folder
C:\Program Files\Java\jre6

--- Sikuli
recommended: X-1.0rc3 r930
Standard installation folder
C:\Program Files\Sikuli X\

--- System path
When on a command line the command set should show a PATH containing these 2 entries (among others ;-)
C:\Program Files\Sikuli X\libs
C:\Program Files\Java\jre6\bin
If you have your stuff somewhere else, you have to adjust these accordingly

--- SIKULI_HOME
it is recommended to have in environment:
SIKULI_HOME=C:\Program Files\Sikuli X\
A MUST: the trailing \
If you have your stuff somewhere else, you have to adjust these accordingly

System Path and Environment:
Systemsettings -> System -> Extended -> Environmentvariables

--- a base test
on a commandline:
java -jar %SIKULI_HOME%sikuli-script.jar -i

this should open an interactive Sikuli Jython session, where you can enter any Jython statements
you have to press enter after each line and watch the printout.
The comments need not be entered ;-)

# starts an interactive snapshot
img = capture()

# prints the filename of the image file located in a temp folder
print img 

If there are any errors, then they should be visible in the command window.
If you need further help, come back pasting the error messages here.

If this works, you should delete the following entry in the registry completely and restart the system:
HKEY_CURRENT_USER\Software\JavaSoft\Prefs\org\sikuli\ide\

Then use Sikuli-IDE.bat or Sikuli-IDE-w.bat (no command window stays
open) to start the IDE.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.