Reputation: 284
How can run an executable jar file through a jruby on rails application? Where would I include the code to run my jar file?
I have looked all over but have yet to see a defined method for doing this type of thing and I'm also very new to rails.
Upvotes: 0
Views: 148
Reputation: 14617
Apparently, you can do 3 things to run an external command:
command
So, in your case your Ruby code would probably be:
`java -jar <name of jar>.jar`
And it would work. It might be that you have to add the full path for Java here, but you might have to try that out yourself.
Upvotes: 1