Using the following as a reference: http://wiki.rubyonrails.org/rails/pages/HowtoGenerateJFreeCharts
I'm trying to build some charts and I need to call a .jar file from within my controller. Here's my code:
pipe = IO.popen("java -jar /raid/projects/Dashboard/charting/ requestByProject.jar "+params[:name]+"") pipe.close
This gives me nothing, however, if I run the command via the command line then it returns the images I need.
I'm running Rails through JRuby on a Sun Solaris machine if that helps at all.
Thanks.