How can I use/install Sikulix on Ubuntu 17.10

Asked by daxm on 2017-12-24

I've issued 'sudo apt install sikulix' on my 17.10 Ubuntu install and it appeared to successfully install. However, when I try to run the command I get the following:
<snip>
[info] runcmd: lsb_release -i -r -s
No protocol specified
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
 at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
 at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
 at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:264)
 at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
 at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
 at org.sikuli.script.RunTime.init(RunTime.java:578)
 at org.sikuli.script.RunTime.get(RunTime.java:290)
 at org.sikuli.ide.SikuliIDE.run(SikuliIDE.java:177)
 at org.sikuli.ide.Sikulix.main(Sikulix.java:21)
</snip>

My guess is that sikulix hasn't been updated for Wayland?
Is there a way to get this to work?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
daxm
Solved:
2017-12-26
Last query:
2017-12-26
Last reply:
2017-12-25
RaiMan (raimund-hocke) said : #1

Using latest 1.1.2 nightly build?

Be aware:
https://github.com/RaiMan/SikuliX-2014/issues/296

daxm (daxm) said : #2

I don't think I'm using the "nightly" build. That said, I tried to figure out which version I had installed and it appears that it loads now!

I don't know why it works today and not the other day. I don't think I've even rebooted since my last attempt. Very strange.