Is Sikuli supported on RHEL 7.5 and above platforms?

Asked by Sheetal on 2020-06-22

Running sikuli x 2.4.jar reports issues:

[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.awt.Desktop.checkActionSupport(Desktop.java:221)
 at java.awt.Desktop.browse(Desktop.java:380)
 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)

Is Sikuli supported over RHEL platforms ?

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-07-02
Last reply:
2020-07-31
RaiMan (raimund-hocke) said : #1

If you respect the prerequisites for using SikuliX 2.0.4 on Linux, then it should work.

Your crash is caused, when SikuliX detects, that you do not have neither Jython nor JRuby and wants to display the link https://github.com/RaiMan/SikuliX1/wiki/How-to-make-Jython-ready-in-the-IDE in your browser (I have to check why this crashes though).

So follow the needs for Linux and try again.

Sheetal (veersheetal) said : #2

Thank You for your response. However I have tried this with Ruby and jython on the Rhel system. Having these and then launching sikuli IDE does not help. Observed a blank Sikuli IDE is launched

RaiMan (raimund-hocke) said : #3

run the IDE from a Terminal using

java -jar sikulix.jar -v -c

to get debug output to the terminal and look for oddities

Sheetal (veersheetal) said : #4

PLEASE find attached logs for more details.

oot 52 Mar 6 04:59 rh
drwxr-xr-x. 2 root root 6 Jun 16 08:30 SetupStuff
drwxr-xr-x. 2 root root 6 Jun 17 07:11 sikuli
-rwxr-xr-x. 1 root root 58746298 Jun 17 14:13 sikulixide-2.0.4.jar
[root@nkrhel76a opt]# java -jar sikulixide-2.0.4.jar -v -c
[DEBUG]startUp: IDE: Running: /opt/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
[DEBUG]startUp: IDE: moving to extensions: /opt/jython-standalone-2.7.1.jar
[DEBUG]startUp: IDE: adding extension file: /root/.Sikulix/Extensions/jython-standalone-2.7.1.jar
[766 debug] RunTime:temp folder ok: /tmp/Sikulix_1893221368
Options: *** options dump
Options: testing =
Options: OptionsFile = /root/.Sikulix/SikulixStore/SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.4-2020-03-14_08:01 API
user.home: /root
user.dir (work dir): /opt
user.name: root
java.io.tmpdir: /tmp
running 64Bit(amd64) on l (3.10.0-862.51.1.el7.x86_64) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: /root/.Sikulix
executing jar: /opt/sikulixide-2.0.4.jar
*** classpath dump sikulix
  0: file:/opt/sikulixide-2.0.4.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[30 debug] Sikulix: starting IDE
[72 debug] RunTime:temp folder ok: /tmp/Sikulix_1488790919
Options: *** options dump
Options: testing =
Options: OptionsFile = /root/.Sikulix/SikulixStore/SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.4-2020-03-14_08:01 IDE
user.home: /root
user.dir (work dir): /opt
user.name: root
java.io.tmpdir: /tmp
running 64Bit(amd64) on l (3.10.0-862.51.1.el7.x86_64) from a jar
java 8 version 1.8 vm 25.211-b12 class 52.0 arch 64
app data folder: /root/.Sikulix
executing jar: /opt/sikulixide-2.0.4.jar
*** classpath dump sikulix
  0: file:/opt/sikulixide-2.0.4.jar
  1: file:/root/.Sikulix/Extensions/jython-standalone-2.7.1.jar
  2: file:/opt/sikulixide-2.0.4.jar
*** classpath dump end
***** show environment end
[475 debug] IDE: running with Locale: en_US
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[490 debug] RunTime:loadlib: trying JXGrabKey
[492 debug] RunTime:libsExport: folder exists: /root/.Sikulix/SikulixLibs (2.0.4 - 202003140801)
[504 debug] RunTime:loadLib: libJXGrabKey.so (success)
[505 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[612 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[613 debug] IDE: Init ScriptingSupport
[618 debug] IDESupport: enter
[1967 debug] Runner: added: Sikulix [] directory/sikulix
[1969 debug] Runner: added: NetworkRunner [] NET
[1978 debug] Runner: added: Jython [py] text/jython
[2490 debug] Runner: added: JavaScript [js] text/javascript
[2491 debug] Runner: added: PackedSikulix [zip] application/zip
[2492 debug] Runner: added: SikulixJar [jar] text/jar
[2492 debug] Runner: added: Text [txt] text/text
[2493 debug] Runner: added: PackedSikulix [skl] text/skl
[2499 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[2500 debug] IDESupport: added: Jython
[2500 debug] IDESupport: added: JavaScript
[2500 debug] IDESupport: added: Text
[2500 debug] IDESupport: exit: defaultrunner: Jython (py)
[2503 debug] IDE: Reading Preferences
[2503 debug] IDE: Adding components to window
[2521 debug] IDE: [I18N] menuRecent
[2549 debug] IDE: [I18N] menuToolAndroid
[2554 debug] IDE: creating tabbed editor
[2837 debug] IDE: creating message area
[2959 debug] IDE: creating combined work window
[2963 debug] IDE: Putting all together
[2963 debug] IDE: Putting all together - after main pane
[2999 debug] IDE: Putting all together - after toolbar
[3002 debug] IDE: Putting all together - before layout
[3240 debug] IDE: Putting all together - after layout
[3241 debug] IDE: Putting all together - Restore last Session
[3257 debug] EditorPane: created 1593509420440
[3270 debug] JythonRunner: starting initialization
[3272 debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli
[3273 debug] RunTime:resourceList: having jar: jar:file:/opt/sikulixide-2.0.4.jar!/Lib/sikuli
[3294 debug] EditorPane: InitTab: (text/jython)
[3314 debug] ImagePath: new BundlePath: /tmp/Sikulix_1488790919/SikulixIDETempTab1593509420440
[3327 debug] Screen: initScreens: starting
[3327 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[3327 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[3327 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[3328 debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[3330 debug] Mouse: init start
[3406 debug] Mouse: init end
[3406 debug] Screen: initScreens: ending
[3406 debug] IDE startup: 3.4 seconds
[debug] RunTime:files exported: 7 from: Lib/sikuli to:
 /root/.Sikulix/Lib/sikuli
[debug] Jython: ***** sys.path
 0: /tmp/Sikulix_1488790919/SikulixIDETempTab1593509420440
 1: /root/.Sikulix/Lib
 2: /root/.Sikulix/Extensions/Lib
 3: /root/.Sikulix/Extensions/jython-standalone-2.7.1.jar/Lib
[7633 debug] JythonRunner: ready: version 2.7.1
[debug] IDE: Quit requested
[debug] HotkeyManager: reset: removed all SikuliX hotkeys.
[debug] RunTime:***** final cleanup at System.exit() *****
[debug] FileManager: deleteFileOrFolder:
/tmp/Sikulix_1488790919
[50839 debug] RunTime:***** final cleanup at System.exit() *****
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
 at java.util.prefs.FileSystemPreferencesFactory.userRoot(FileSystemPreferencesFactory.java:41)
 at java.util.prefs.Preferences.userRoot(Preferences.java:454)
 at java.util.prefs.Preferences.userNodeForPackage(Preferences.java:368)
 at org.sikuli.basics.PreferencesUser.<init>(PreferencesUser.java:53)
 at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57)
 at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350)
 at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364)
 at org.sikuli.script.support.RunTime.access$000(RunTime.java:42)
 at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056)
Caused by: java.lang.IllegalStateException: Shutdown in progress
 at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
 at java.lang.Runtime.addShutdownHook(Runtime.java:211)
 at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:451)
 at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:449)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.prefs.FileSystemPreferences.<clinit>(FileSystemPreferences.java:449)
 ... 9 more

Sheetal (veersheetal) said : #5

Did anyone get a chance to look at the issue.

RaiMan (raimund-hocke) said : #6

looks ok. What is the problem?

... but why running as root and not with a normal /home folder?

Launchpad Janitor (janitor) said : #7

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.