Using headless linux host to run jruby script on VNC screen

Asked by Jivan Kulkarni

Provided that the SikuliX setup jar requires a screen, what is the best way to setup a headless client that will VNC into other machines?
I plan to use the JRuby gem from GitHub which works fine on a windows machine that has the SikuliX IDE installed with the sikulixapi.jar. I copied the jar and set the sikulixapi_jar environment variable and get the following error:

[error] ResourceLoader: checkLibsDir: Not a valid libs dir for SikuliX (amd64): /root/libs
[error] ResourceLoader: checkLibsDir: Not a valid libs dir for SikuliX (amd64): /root/libs
NameError: missing class or uppercase package name (`org.sikuli.script.Screen'), caused by (NameError) cannot initialize Java class org.sikuli.script.Screen

get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/root/jruby/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
(root) at /root/jruby/lib/ruby/gems/shared/gems/sikulix-1.1.0.3/lib/sikulix/sikulix.:14
(root) at /root/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at org/jruby/RubyKernel.java:954
require at /root/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
(root) at /root/jruby/lib/ruby/gems/shared/gems/sikulix-1.1.0.3/lib/sikulix.rb:4
require at org/jruby/RubyKernel.java:954
(root) at /root/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
__script__ at sikuli.rb:1

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
Edmundo VN (edmundo-vn) said :
#1

I don't have sure if I understood what you want to do. But if you want to run something that needs a screen without having a screen, have you tried xvfb? http://en.wikipedia.org/wiki/Xvfb

Can you help with this problem?

Provide an answer of your own, or ask Jivan Kulkarni for more information if necessary.

To post a message you must log in.