sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32959
[Question #268186]: exception in java.awt.Desktop.browse method .. loading URL
New question #268186 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268186
I am running sikuli-slides-1.5.0.jar on Ubuntu 14.04 (32 bit).
When I run the helloworld.pptx example in command line
java -jar sikuli-slides-1.5.0.jar execute helloworld.pptx > helloworld_log.txt
I see this java exception in the logged output.
Exception in thread "Thread-0" java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at java.awt.Desktop.checkActionSupport(Desktop.java:225)
at java.awt.Desktop.browse(Desktop.java:381)
...
...
This exception only applies to the first slide which uses the Open action to launch a URL in default browser (as in helloworld.pptx).
I have tried Open, Browse, and Browser as actions.
If I skip that first slide I can run through methods in sikuli-slides-1.5.0.jar without error.
e.g. I can also use the generate command.
The java version is ...
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
How can sikuli-slides-1.5.0.jar invoke the java.awt.Desktop.browse method without hitting an exception?
I've tried making (a) Firefox Web Browser and (b) Chromium Web Browser as default browser in turn but no solution.
I did research this exception and found reference to an old (jdk-6) bug here ..
JDK-6486393 : Need a KDE support in java.awt.Desktop class
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6486393
referring to gnome-www-browser.
[quote]
The Desktop class apparently is only looking for a Gnome browser. It does not try to look for Mozilla, FireFox or even Konqueror:-( So it fails when you don't run on a Gnome desktop.
[/quote]
I could find no reference to this exception in this forum so I'm guessing that I might have some dependency missing.
I have libgnome2-0 installed.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.