I saw in the source code that the Gst.init() method wants a ‘String[]’
argument. What is the jruby equivelant of this? I tried to initialize
the String[] with:
a = Java.lang.String[]
but that didn’t work. It gave back a regular ruby class.
Native.loadLibrary ‘/usr/lib/libgstreamer-0.10.so’
NameError: no loadLibrary with arguments matching [class
java.lang.String] on object Java::ComSunJna::Native
I saw in the source code that the Gst.init() method wants a ‘String[]’
argument. What is the jruby equivelant of this? I tried to initialize
the String[] with:
a = Java.lang.String[]
but that didn’t work. It gave back a regular ruby class.
Found it!
java.lang.String[0].new
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.