Sikulix.jar is not starting

Asked by Petra Horner on 2019-06-12

I just downloaded SikuliX 1.1.4 on my Computer (64bit).
When I try to start the Jar by double click or via CMD the window "SikuliX-IDE is starting" pops up, but that's it. The Sikulix Application is never shown, even not after 15min.
There is no error shown.

my Computer:
Windows 10 64 bit
Java Version 1.8.0_171
Sikulix 1.1.3 did work

I downloaded
 Jython interpreter 2.7.1 for python scripting (the default)
later
 JRuby interpreter 9.x for ruby Scripting
as well

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Petra Horner
Solved:
2019-06-12
Last query:
2019-06-12
Last reply:
2019-06-12
RaiMan (raimund-hocke) said : #1

should first be a question

RaiMan (raimund-hocke) said : #2

use in a command line:

java -jar <path-to-sikulix.jar> -v

and look into the debug info what might be the problem.

If you do not see anything, then post the log here.

Petra Horner (petra89) said : #3

PS C:\SikuliX\1_4> java -jar C:/SikuliX/1_4/sikulix.jar -v
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: moving to extensions: C:\SikuliX\1_4\jython-standalone-2.7.1.jar
[DEBUG] IDE: adding extension: C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\SikuliX\1_4\sikulix.jar
[DEBUG] IDE: AppData: C:\Users\petrah\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\SikuliX\1_4\sikulix.jar;C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[93 debug] init user preferences
[95 debug] IDE: running with Locale: de_AT
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[101 debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[486 debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[486 debug] IDE: Init ScriptingSupport
[489 debug] IDESupport: enter
[1566 debug] Runner: added: PowerShell [ps1] text/powershell
[1567 debug] Runner: added: Text [txt] text/text
[1567 debug] Runner: added: Sikulix [sikuli, skl, jar] directory/sikulix
[1576 debug] Runner: added: Jython [py, $py.class] text/jython
[1806 debug] Runner: added: JavaScript [js] text/javascript
[1807 debug] IDESupport: added: Jython
[1807 debug] IDESupport: added: JavaScript
[1807 debug] IDESupport: added: Text
[1807 debug] IDESupport: exit: defaultrunner: Jython (py)
[1809 debug] IDE: Reading Preferences
[1815 debug] Screen: initScreens: starting
[1816 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[1816 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[1816 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[1817 debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[1817 debug] Screen: Monitor 1: (-1920, 0) 1920 x 1080
[1819 debug] Mouse: init start
[2324 debug] Mouse: init end
[2325 debug] Screen: initScreens: multi monitor mouse check
[2326 debug] Screen: *** checking: R[0,0 1920x1080]@S(0) center: (960, 540) --- OK
[2327 debug] Screen: *** checking: R[-1920,0 1920x1080]@S(1) center: (-960, 540) --- OK
[2328 debug] Screen: initScreens: ending
[2328 debug] IDE: Adding components to window
[2335 debug] IDE: [I18N] menuRecent
[2351 debug] IDE: [I18N] menuToolAndroid
[2353 debug] IDE: creating tabbed editor
[2426 debug] IDE: creating message area
[2472 debug] EditorConsolePane: starting redirection to message area

Petra Horner (petra89) said : #4

Sorry, I don't see what's wrong

RaiMan (raimund-hocke) said : #5

me too ;-)

try with:
java -jar <path-to-sikulix.jar> -v -c

Petra Horner (petra89) said : #6

 C:\SikuliX\1_4> java -jar C:/SikuliX/1_4/sikulix.jar -v -c
[DEBUG] IDE: starting
[DEBUG] IDE: no extensions.txt nor valid content
[DEBUG] IDE: adding extension: C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: Running: C:\SikuliX\1_4\sikulix.jar
[DEBUG] IDE: AppData: C:\Users\petrah\AppData\Roaming\Sikulix
[DEBUG] IDE: Classpath: C:\SikuliX\1_4\sikulix.jar;C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[DEBUG] IDE: no extensions.txt nor valid content
[95 debug] init user preferences
[97 debug] IDE: running with Locale: de_AT
[DEBUG] IDE: --- Sikuli parameters ---
[DEBUG] IDE: 1: -v
[DEBUG] IDE: 2: -c
[103 debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[555 debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[556 debug] IDE: Init ScriptingSupport
[559 debug] IDESupport: enter
[1601 debug] Runner: added: PowerShell [ps1] text/powershell
[1602 debug] Runner: added: Text [txt] text/text
[1603 debug] Runner: added: Sikulix [sikuli, skl, jar] directory/sikulix
[1615 debug] Runner: added: Jython [py, $py.class] text/jython
[1616 debug] Runner: added: Robot [robot] text/robot
[1884 debug] Runner: added: JavaScript [js] text/javascript
[1884 debug] IDESupport: added: Jython
[1884 debug] IDESupport: added: JavaScript
[1884 debug] IDESupport: added: Text
[1885 debug] IDESupport: exit: defaultrunner: Jython (py)
[1886 debug] IDE: Reading Preferences
[1890 debug] Screen: initScreens: starting
[1890 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[1891 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[1891 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[1891 debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[1891 debug] Screen: Monitor 1: (-1920, 0) 1920 x 1080
[1893 debug] Mouse: init start
[2398 debug] Mouse: init end
[2398 debug] Screen: initScreens: multi monitor mouse check
[error] RobotDesktop: checkMousePosition: should be L[960,540]@S(0)
but after move is L[961,540]@S(0)
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.
[2400 debug] Screen: *** multimonitor click check: R[0,0 1920x1080]@S(0) center: (960, 540) --- NOT OK: (961, 540)
[2401 debug] Screen: *** checking: R[-1920,0 1920x1080]@S(1) center: (-960, 540) --- OK
[2402 debug] Screen: initScreens: ending
[2402 debug] IDE: Adding components to window
[2410 debug] IDE: [I18N] menuRecent
[2422 debug] IDE: [I18N] menuToolAndroid
[2425 debug] IDE: creating tabbed editor
[2500 debug] IDE: creating message area
[2544 debug] IDE: creating combined work window
[2547 debug] IDE: Putting all together
[2548 debug] IDE: Putting all together - after main pane
[2611 debug] IDE: Putting all together - after toolbar
[2613 debug] IDE: Putting all together - before layout
[2678 debug] IDE: Putting all together - after layout
[2679 debug] IDE: Putting all together - Restore last Session
[2680 debug] IDE: Restore scripts from last session
[2681 debug] IDE: Restore Sikuli script: C:\SikuliX\Scripts\functions5.sikuli
[2690 debug] EditorPane: created 1560334605491
[2700 debug] EditorPane: loadfile: C:\SikuliX\Scripts\functions5.sikuli
[2701 debug] JythonRunner: starting initialization
[2721 debug] EditorPane: InitTab: (text/jython)
[2738 debug] SikuliEditorKit.read
[2752 debug] EditorPane: setFiles: for: C:\SikuliX\Scripts\functions5.sikuli
[2757 debug] ImagePath: new BundlePath: C:\SikuliX\Scripts\functions5.sikuli
[2759 debug] EditorPane: checkSource: started (C:\SikuliX\Scripts\functions5.sikuli\functions5.py)
[2850 debug] Image: loaded: functions5_025428_001.png (file:C:\SikuliX\Scripts\functions5.sikuli\functions5_025428_001.png)
[2851 debug] Image: cached: functions5_025428_001.png (33 KB) (# 1 KB 33 -- 0 % of 64 MB)
[2861 debug] Image: reused: functions5_025428_001.png (file:C:\SikuliX\Scripts\functions5.sikuli\functions5_025428_001.png)
[2865 debug] IDE: Restore Sikuli script: C:\SikuliX\Scripts\functions6.sikuli
[2871 debug] EditorPane: created 1560334605672
[2876 debug] EditorPane: loadfile: C:\SikuliX\Scripts\functions6.sikuli
[2882 debug] EditorPane: InitTab: (text/jython)
[2883 debug] SikuliEditorKit.read
[2890 debug] EditorPane: setFiles: for: C:\SikuliX\Scripts\functions6.sikuli
[2890 debug] ImagePath: new BundlePath: C:\SikuliX\Scripts\functions6.sikuli
[2891 debug] EditorPane: checkSource: started (C:\SikuliX\Scripts\functions6.sikuli\functions6.py)
[error] Region(1932,10,1900,1061) outside any screen - subsequent actions might not work as expected
Exception in thread "main" java.lang.NullPointerException
        at org.sikuli.ide.EditorRegionButton.getRegionImage(EditorRegionButton.java:70)
        at org.sikuli.ide.EditorRegionButton.<init>(EditorRegionButton.java:31)
        at org.sikuli.ide.EditorRegionButton.createFromString(EditorRegionButton.java:103)
        at org.sikuli.ide.EditorPane.replaceWithImage(EditorPane.java:894)
        at org.sikuli.ide.EditorPane.parseLine(EditorPane.java:867)
        at org.sikuli.ide.EditorPane.parseRange(EditorPane.java:847)
        at org.sikuli.ide.EditorPane.parse(EditorPane.java:798)
        at org.sikuli.ide.EditorPane.parse(EditorPane.java:800)
        at org.sikuli.ide.EditorPane.doParse(EditorPane.java:785)
        at org.sikuli.ide.EditorPane.loadFile(EditorPane.java:228)
        at org.sikuli.ide.SikulixIDE.restoreScriptFromSession(SikulixIDE.java:572)
        at org.sikuli.ide.SikulixIDE.restoreSession(SikulixIDE.java:539)
        at org.sikuli.ide.SikulixIDE.initSikuliIDE(SikulixIDE.java:293)
        at org.sikuli.ide.SikulixIDE.main(SikulixIDE.java:90)
[5410 debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli
[5411 debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/SikuliX/1_4/sikulix.jar!/Lib/sikuli
[7150 debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to:
 C:\Users\petrah\AppData\Roaming\Sikulix\Lib\sikuli
[7153 debug] Jython: added as Jython::sys.path[0]:
C:\Users\petrah\AppData\Roaming\Sikulix\Lib\site-packages
[7164 debug] Jython: ***** sys.path
 0: C:\SikuliX\Scripts\functions6.sikuli
 1: C:\Users\petrah\AppData\Roaming\Sikulix\Lib\site-packages
 2: C:\Users\petrah\AppData\Roaming\Sikulix\Lib
 3: C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\Lib
 4: C:\Users\petrah\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar\Lib
[7207 debug] JythonRunner: ready: version 2.7.1

Petra Horner (petra89) said : #7

ok, that was not what I would have expected.
I moved the old Folder. Now it is working.
THNKS