I am currently writing a ruby application that requires the output of a java jar.
I currently can not get any output from the java command using open3.
I have however, successfully tested the following ruby code using 'ls'.
require 'open3'
Open3.popen3('java -version') do |stdrin, stdout, stderr|
@output = stdout.read
end
I have also tried using an absolute path for java: '/opt/java/jre/bin/java' with no success.
Thank you, in advance