[1.0.1]Sikuli-IDE can not launch, after double click the script "runIDE"

Asked by XiaojunZhou

Hi, today, My Sikuli-IDE can not launch, after I double click the script "runIDE". And it has been waiting for interface(starting pls wait ). and I has another problem: in eclipse, I can not use methods like click(),find(), I must create a Region, like:
region = Region()
region.click("something.png")

I want to know why? Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:

This question was reopened

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

in a command line window use
runIDE -d
and have a look at the created log file.

for use with Eclipse
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming

Revision history for this message
XiaojunZhou (chowxiaojun) said :
#2

Hi, I want to know in eclipse, Why I can not use method click() directly.

Revision history for this message
XiaojunZhou (chowxiaojun) said :
#3

I already know,thank you!

Revision history for this message
XiaojunZhou (chowxiaojun) said :
#4

The first problem, these are the logs:
C:\SikuliX>runIDE.cmd -d
+++ running this Java
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
+++ trying to start Sikuli IDE
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\SikuliX\sikuli-ide.jar -d
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -1
        at java.lang.String.substring(String.java:1911)
        at org.sikuli.ide.SikuliIDE.setFileTabTitle(SikuliIDE.java:489)
        at org.sikuli.ide.SikuliIDE.setCurrentFileTabTitle(SikuliIDE.java:470)
        at org.sikuli.ide.SikuliIDE.loadFile(SikuliIDE.java:510)
        at org.sikuli.ide.SikuliIDE.restoreSession(SikuliIDE.java:445)
        at org.sikuli.ide.SikuliIDE.initSikuliIDE(SikuliIDE.java:326)
        at org.sikuli.ide.SikuliIDE.<init>(SikuliIDE.java:242)
        at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:349)
        at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:235)

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

this is not the log file, but the command line window output.

I want to see the produce log file in c:/SikuliX

But I already guess the problem:
you should delete the branch in the registry:
HKEY_CURRENT_USER\Software\JavaSoft\Prefs\org\sikuli\

... and take care not to use folder and filenames with Non-Ascii characters.

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

on your comment #2:
are you using Java or Jython in Eclipse?

Revision history for this message
XiaojunZhou (chowxiaojun) said :
#7

Thanks RaiMan, that solved my question.

Revision history for this message
XiaojunZhou (chowxiaojun) said :
#8

yes, I am using Java and Python in Eclipse.