I'm trying to call a ruby script from within a java code. The script.rb file in in the same folder as the java code.
try
{
Process p = Runtime.getRuntime().exec("ruby script.rb");
}
catch (IOException e)
{
e.printStackTrace();
}
However, the script doesn't get executed. Any suggestions on what can be done ?