Tried installing on Ubuntu Hyper-V VM and failed

Asked by Jon Parkes on 2021-01-30

When trying to install Sikuli on Linux, I get errors. I followed the detailed instructions and resolved initial issues, but when trying to perform:
>java -jar sikulix.jar
I get a Window pop-up with an error about "Neither Jython nor JRuby available... etc"
And the command prompt output is:
Exception in thread "main" java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
 at java.desktop/java.awt.Desktop.checkActionSupport(Desktop.java:380)
 at java.desktop/java.awt.Desktop.browse(Desktop.java:524)
 at org.sikuli.script.support.ExtensionManager.makeClassPath(ExtensionManager.java:149)
 at org.sikuli.script.support.RunTime.start(RunTime.java:125)
 at org.sikuli.ide.Sikulix.main(Sikulix.java:13)

I have tried installing both jython and jruby, but it makes no difference.

My >java version output is:
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

Any suggestions?

Many thanks,
Jon

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

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

run as:
java -jar sikulix.jar -v -c

be sure to use version 2.0.4
https://raiman.github.io/SikuliX1/downloads.html

in this case you should have
sikulixide-2.0.4.jar

instead of
sikulix.jar

Installing Jython or JRuby does not make sense in the first place.
Only if you want to run scripts in a real Jython/JRuby environment (e.g. from an IDE like PyCharm).

As a starter just do what is said on the mentioned page.

Revision history for this message
Jon Parkes (redstamp) said :
#2

Sorry, should have been more precise. I already followed the Linux instructions. I had renamed the download to simplify the java command, but was using the version 2.0.4 already. I also tried the -v and -c switches, but for completeness the output with -v and -c is:
[DEBUG]startUp: IDE: Running: /home/jon/SikuliX/sikulixide-2.0.4.jar
[DEBUG]startUp: IDE: AppData: /root/.Sikulix
[DEBUG]startUp: IDE: starting with classpath: sikulixide-2.0.4.jar ...
[DEBUG]startUp: IDE: no extensions.txt nor valid content
Exception in thread "main" java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
 at java.desktop/java.awt.Desktop.checkActionSupport(Desktop.java:380)
 at java.desktop/java.awt.Desktop.browse(Desktop.java:524)
 at org.sikuli.script.support.ExtensionManager.makeClassPath(ExtensionManager.java:149)
 at org.sikuli.script.support.RunTime.start(RunTime.java:125)
 at org.sikuli.ide.Sikulix.main(Sikulix.java:13)

And get the same error pop-up for jython and jruby - which I will uninstall, as I didn't think they were required from the Linux instructions, but I had tried everything else.

Thanks,
Jon

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

ok, let's try again:

- make a folder somewhere named e.g. MySikuliX
- into this folder from the download-page (https://raiman.github.io/SikuliX1/downloads.html)
   - download sikulixide-....jar
   - download Jython-standalone...jar
   (JRuby is only needed if you really want to use it)
- in a Terminal being in the folder MySikuli run
java -jar sikulix....jar -v -c

this should work and copy the Jython jar to the .Sikulix/extensions folder

Can you help with this problem?

Provide an answer of your own, or ask Jon Parkes for more information if necessary.

To post a message you must log in.