The BROWSE action is not supported on the current platform!

Asked by Sudhansu Gewali

Following error occurs while trying to execute Sikuli Script with Java 11 using Sikuli 2.0.4.

java.lang.ExceptionInInitializerError
 at org.sikuli.script.Pattern.<init>(Pattern.java:127)
 at com.ptc.windchill.mpml.sikuli.SikuliInstanceSolvent.SikuliCompareImageInScreen(SikuliInstanceSolvent.java:91)
 at com.ptc.windchill.pdmLink.mpml.mapsb.visualization.bom.VizCopyPasteAsNewBranchDiffLevel.VizCopyPasteAsNewBranchDiffLevel.vizCopyPasteAsNewBranchDiffLevel(VizCopyPasteAsNewBranchDiffLevel.java:202)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at com.ptc.radar.util.TimeMonitorRule$StatementThread.run(TimeMonitorRule.java:128)
Caused by: 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.RunTime.libsLoad(RunTime.java:1526)
 at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1689)
 at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:536)

Question information

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

what system?

You have a problem with the OpenCV libraries and SikuliX wants to point you to one of the GitHub Wiki entries:
https://github.com/RaiMan/SikuliX1/wiki

Nevertheless: this should not lead to an exception. I will fix that with 2.0.5.

There should be also an error message in the console output (run script from commandline).

Can you help with this problem?

Provide an answer of your own, or ask Sudhansu Gewali for more information if necessary.

To post a message you must log in.