Fresh Ubuntu install on VM and SikuliX IDE will not start

Asked by Matthew Forrest on 2020-06-02

Hi, I have a fresh Ubuntu install on a VM. I've tried to put Sikuli onto this VM and launch the IDE but it will not start. If I double click the jar file I briefly see a popup that the IDE is starting and nothing after that. I have to kill the process.

Here is the output if I run: 'java -jar sikulixide-2.0.4.jar -v -c'

[DEBUG]startUp: IDE: Running: /home/user/SikuliX/sikulixide-2.0.4.jar
[DEBUG]startUp: IDE: AppData: /home/user/.Sikulix
[DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.4.jar ...
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension file: /home/user/.Sikulix/Extensions/jython-standalone-2.7.1.jar
[363 debug] RunTime:temp folder ok: /tmp/Sikulix_1256731715
Options: *** options dump
Options: testing =
Options: OptionsFile = /home/user/.Sikulix/SikulixStore/SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.4-2020-03-14_08:01 API
user.home: /home/user
user.dir (work dir): /home/user/SikuliX
user.name: user
java.io.tmpdir: /tmp
running 64Bit(amd64) on l (5.4.0-26-generic) from a jar
java 8 version 1.8 vm 25.252-b09 class 52.0 arch 64
app data folder: /home/user/.Sikulix
executing jar: /home/user/SikuliX/sikulixide-2.0.4.jar
*** classpath dump sikulix
  0: file:/home/user/SikuliX/sikulixide-2.0.4.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[46 debug] Sikulix: starting IDE
[81 debug] RunTime:temp folder ok: /tmp/Sikulix_1427684548
Options: *** options dump
Options: testing =
Options: OptionsFile = /home/user/.Sikulix/SikulixStore/SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.4-2020-03-14_08:01 IDE
user.home: /home/user
user.dir (work dir): /home/user/SikuliX
user.name: user
java.io.tmpdir: /tmp
running 64Bit(amd64) on l (5.4.0-26-generic) from a jar
java 8 version 1.8 vm 25.252-b09 class 52.0 arch 64
app data folder: /home/user/.Sikulix
executing jar: /home/user/SikuliX/sikulixide-2.0.4.jar
*** classpath dump sikulix
  0: file:/home/user/SikuliX/sikulixide-2.0.4.jar
  1: file:/home/user/.Sikulix/Extensions/jython-standalone-2.7.1.jar
  2: file:/home/user/SikuliX/sikulixide-2.0.4.jar
*** classpath dump end
***** show environment end
[243 debug] IDE: running with Locale: en_US
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[254 debug] RunTime:loadlib: trying JXGrabKey
[262 debug] RunTime:libsExport: folder exists: /home/user/.Sikulix/SikulixLibs (2.0.4 - 202003140801)
[263 debug] RunTime:loadLib: libJXGrabKey.so (success)
[266 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[370 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[372 debug] IDE: Init ScriptingSupport
[377 debug] IDESupport: enter
[2111 debug] Runner: added: SikulixJar [jar] text/jar
[2113 debug] Runner: added: PackedSikulix [zip] application/zip
[2117 debug] Runner: added: PackedSikulix [skl] text/skl
[2142 debug] Runner: added: Jython [py] text/jython
[2143 debug] Runner: added: NetworkRunner [] NET
[2146 debug] Runner: added: Sikulix [] directory/sikulix
[2893 debug] Runner: added: JavaScript [js] text/javascript
[2894 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[2897 debug] Runner: added: Text [txt] text/text
[2897 debug] IDESupport: added: Jython
[2905 debug] IDESupport: added: JavaScript
[2906 debug] IDESupport: added: Text
[2906 debug] IDESupport: exit: defaultrunner: Jython (py)
[2912 debug] IDE: Reading Preferences
[2912 debug] IDE: Adding components to window
[2939 debug] IDE: [I18N] menuRecent
[3004 debug] IDE: [I18N] menuToolAndroid
[3025 debug] IDE: creating tabbed editor
[3270 debug] IDE: creating message area
[3416 debug] IDE: creating combined work window
[3422 debug] IDE: Putting all together
[3429 debug] IDE: Putting all together - after main pane
[3510 debug] IDE: Putting all together - after toolbar
[3517 debug] IDE: Putting all together - before layout
[3594 debug] IDE: Putting all together - after layout
[3595 debug] IDE: Putting all together - Restore last Session
[3639 debug] EditorPane: created 1591097931244
[3668 debug] JythonRunner: starting initialization
[3678 debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli
[3685 debug] RunTime:resourceList: having jar: jar:file:/home/user/SikuliX/sikulixide-2.0.4.jar!/Lib/sikuli
[3793 debug] EditorPane: InitTab: (text/jython)
[3814 debug] ImagePath: new BundlePath: /tmp/Sikulix_1427684548/SikulixIDETempTab1591097931244
[3848 debug] Screen: initScreens: starting
[3857 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[3857 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[3857 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[3857 debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[3859 debug] Mouse: init start
[3880 debug] Mouse: init end
[3881 debug] Screen: initScreens: ending
[3881 debug] IDE startup: 3.9 seconds
[debug] RunTime:files exported: 7 from: Lib/sikuli to:
 /home/user/.Sikulix/Lib/sikuli
[debug] Jython: added as Jython::sys.path[0]:
/home/user/.Sikulix/Lib/site-packages
[debug] Jython: ***** sys.path
 0: /tmp/Sikulix_1427684548/SikulixIDETempTab1591097931244
 1: /home/user/.Sikulix/Lib/site-packages
 2: /home/user/.Sikulix/Lib
 3: /home/user/.Sikulix/Extensions/Lib
 4: /home/user/.Sikulix/Extensions/jython-standalone-2.7.1.jar/Lib
[12623 debug] JythonRunner: ready: version 2.7.1

After this, it hangs. Nothing in the above output is jumping out to me as a critical error.

I performed some of the suggestions here: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html
Installed libcanberra-gtk0 libcanberra-gtk-module libopencv4.2-java tesseract-ocr libtesseract-dev libtesseract4
Linked libopencv using command sudo ln -s /usr/lib/jni/libopencv_java420.so /usr/lib/libopencv_java.so

Still nothing. Would appreciate any assistance.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Matthew Forrest
Solved:
2020-06-04
Last query:
2020-06-04
Last reply:
2020-06-04
RaiMan (raimund-hocke) said : #1

At that point the IDE window should get visible.

Try to start the jar from commandline/terminal using java -jar ...

Matthew Forrest (sea-change) said : #2

For future readers, I solved by uninstalling openjdk-8-jdk and installing openjdk-11-jdk
Still not sure what the issue was but it is running now so that is good.