Unable to start SikuliX 2.0.5 in Java 10

Asked by Nathan

Sikuli used to work great for me. But since a while it doesn't work anymore. When I start Sikuli I get the message: SikuliX is starting with Java 10. Then I have a icon in my taskbar for SikuliX, but when I click this icon nothing happens.

I tried downloading SikuliX again and moving the folders, without results.
Starting Sikuli with "java -jar sikulixide-2.0.5-win.jar -v -c" gives me the following output, but I have no idea what to do with this:

[DEBUG]startUp: IDE: Running: C:\Users\Nathan\Downloads\sikulixide-2.0.5-win.jar
[DEBUG]startUp: IDE: AppData: C:\Users\Nathan\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.5-win.jar ...
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[401 debug] RunTime:temp folder ok: C:\Users\Nathan\AppData\Local\Temp\Sikulix_180119355
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\Nathan\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 API
user.home: C:\Users\Nathan
work dir: C:\Users\Nathan\Downloads
running on Windows 10.0 from a jar
running Java Oracle Corporation 10.0.2+13
java.io.tmpdir: C:\Users\Nathan\AppData\Local\Temp
app data folder: C:\Users\Nathan\AppData\Roaming\Sikulix
executing jar: C:\Users\Nathan\Downloads\sikulixide-2.0.5-win.jar
*** classpath dump sikulix
  0: sikulixide-2.0.5-win.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[34 debug] Sikulix: starting IDE
[49 debug] RunTime:temp folder ok: C:\Users\Nathan\AppData\Local\Temp\Sikulix_760198702
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\Nathan\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.5 IDE
user.home: C:\Users\Nathan
work dir: C:\Users\Nathan\Downloads
running on Windows 10.0 from a jar
running Java Oracle Corporation 10.0.2+13
java.io.tmpdir: C:\Users\Nathan\AppData\Local\Temp
app data folder: C:\Users\Nathan\AppData\Roaming\Sikulix
executing jar: C:\Users\Nathan\Downloads\sikulixide-2.0.5-win.jar
*** classpath dump sikulix
  0: C:\Users\Nathan\Downloads\sikulixide-2.0.5-win.jar
  1: sikulixide-2.0.5-win.jar
*** classpath dump end
***** show environment end
[315 debug] IDE: running with Locale: en_US
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[330 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[555 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[556 debug] IDE: Init ScriptingSupport
[559 debug] IDESupport: enter
[2109 debug] Runner: added: PackedSikulix [zip] application/zip
[2110 debug] Runner: added: NetworkRunner [] NET
[2111 debug] Runner: added: PowerShell [ps1] text/powershell
[2111 debug] Runner: added: PackedSikulix [skl] text/skl
[2112 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[2120 debug] Runner: added: Jython [py] text/jython
[2121 debug] Runner: added: Sikulix [] directory/sikulix
[2121 debug] Runner: added: SikulixJar [jar] text/jar
[2123 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
[2124 debug] Runner: added: Text [txt] text/text
[2124 debug] IDESupport: added: Jython
[2125 debug] IDESupport: added: Text
[2125 debug] IDESupport: exit: defaultrunner: Jython (py)
[2129 debug] IDE: Reading Preferences
[2129 debug] IDE: Adding components to window
[2141 debug] IDE: [I18N] menuRecent
[2155 debug] IDE: [I18N] menuToolAndroid
[2158 debug] IDE: creating tabbed editor
[2234 debug] IDE: creating message area
[2281 debug] IDE: creating combined work window
[2284 debug] IDE: Putting all together
[2284 debug] IDE: Putting all together - after main pane
[2342 debug] IDE: Putting all together - after toolbar
[2344 debug] IDE: Putting all together - before layout
[2381 debug] IDE: Putting all together - after layout
[2382 debug] IDE: Putting all together - Restore last Session
[2390 debug] EditorPane: created 1636981410128
[2400 debug] JythonRunner: starting initialization
[2418 debug] EditorPane: InitTab: (text/jython)
[2423 debug] ImagePath: new BundlePath: C:\Users\Nathan\AppData\Local\Temp\Sikulix_760198702\SikulixIDETempTab1636981410128
[2431 debug] Screen: initScreens: starting
[2431 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[2432 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[2433 debug] Screen: Monitor 0: (1920, 0) 1920 x 1080
[2433 debug] Screen: ScreenDevice 1 has (0,0) --- will be primary Screen(0)
[2434 debug] Screen: Monitor 1: (0, 0) 1920 x 1080
[2436 debug] Screen: initScreens: monitor mouse check
[2441 debug] Screen: *** multimonitor click check: R[0,0 1920x1080]@S(0) center: (960, 540) --- NOT OK: (959, 541)
[2443 debug] Screen: *** checking: R[1920,0 1920x1080]@S(1) center: (2880, 540) --- OK
[2445 debug] Screen: initScreens: ending
[2445 debug] IDE startup: 2.4 seconds *** Running on Java 9+
[debug] Jython: added as Jython::sys.path[0]:
C:\Users\Nathan\AppData\Roaming\Sikulix\Lib\site-packages
[debug] Jython: ***** sys.path
 0: C:\Users\Nathan\AppData\Local\Temp\Sikulix_760198702\SikulixIDETempTab1636981410128
 1: C:\Users\Nathan\AppData\Roaming\Sikulix\Lib\site-packages
 2: C:\Users\Nathan\AppData\Roaming\Sikulix\Lib
 3: C:\Users\Nathan\Downloads\Lib
 4: C:\Users\Nathan\Downloads\sikulixide-2.0.5-win.jar\Lib
[4628 debug] JythonRunner: ready: version 2.7.2

Thanks for looking into this issue for me :)

Question information

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

Did the problems start, when you started using Java 10?

you should use Java LTS versions (8, 11 or 17).

I develop and test with OpenJDK versions (non-commercial).

I do not have any problems running SikuliX 2.0.5 on Windows 11 (before on Win 10) using Java 11 or 17.

Revision history for this message
Nathan (nathanovic) said (last edit ):
#2

Thanks for your response RaiMan!
Nope, I already used Java 10 beforehand as well.

I have just downloaded Java 17 LTS. When I start SikuliX it says "SikuliX is starting on Java 17" but it still doesn't work :(

I find it very weird that Sikuli does seem to start but it just doesn't operate correctly. I can hover over the taskbar icon like in this image: http://prntscr.com/1zrjhd5
But when I click it nothing happens. Hope this detail may help someone in finding the solution.

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

So, if it worked before with the same setup (Java, SikuliX) then you have to find out, what has changed in your config or usage.

Check your monitor setups (should be 100% scaling).

Revision history for this message
Nathan (nathanovic) said :
#4

Wow, it seems that I found the solution: I changed which one of my two screens is the left screen and now SikuliX works again! :o
Apparantly I changed this and Sikuli didn't properly process this change.

Changing the left screen while SikuliX is loaded also works, so now I can use my favorite setup and Sikuli works like a charm again.