call Java .jar in Rails ?

Morning, everyone,

We are freshman to Rails.

We need to call Java .jar in Rails. The argument is a string with JSON format, the output is also a string with JSON format.

Rails could do it?

Thanks.