Hi All , I have written java code ( This java code will not return any thing but it will do action ) which is required call from ruby , please let me what is best way to achieve this ? Thanks , Muthu Selvan SR -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4b2b06a7-d649-40bf-9679-d57226ce8250%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 21 June 2013 04:04, Muthu Selvan <pearl.selvan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi All , > > I have written java code ( This java code will not return any thing but it > will do action ) which is required call from ruby , please let me what is > best way to achieve this ?You can use the ruby system method to run a command, which can be any language of course. Or you can use the backtick syntax. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLthEheyGTPRVpnPu7%2BvU5oR0xM6F5bWp5DFdygLSEV5qg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Robert Walker
2013-Jun-21 14:23 UTC
Re: [HELP ] Call java code / method from Ruby programming
Colin Law wrote in post #1113075:> On 21 June 2013 04:04, Muthu Selvan <pearl.selvan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I have written java code ( This java code will not return any thing but it >> will do action ) which is required call from ruby , please let me what is >> best way to achieve this ? > > You can use the ruby system method to run a command, which can be any > language of course. Or you can use the backtick syntax.You might also take a look at this: http://rjb.rubyforge.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dc93b744bd1f0fa94f79cee066a3dd7b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2013-Jun-21 14:28 UTC
Re: Re: [HELP ] Call java code / method from Ruby programming
On Fri, Jun 21, 2013 at 9:23 AM, Robert Walker <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote in post #1113075: >> On 21 June 2013 04:04, Muthu Selvan <pearl.selvan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> I have written java code ( This java code will not return any thing but it >>> will do action ) which is required call from ruby , please let me what is >>> best way to achieve this ? >> >> You can use the ruby system method to run a command, which can be any >> language of course. Or you can use the backtick syntax. > > You might also take a look at this: > > http://rjb.rubyforge.orgDid we all seem to forget there is something called jRuby? https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnywdOXENV_o%3Dwx3TaEn9V-ddsRYp4ct-sGS5dRhM3Bu6Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Reasonably Related Threads
- Best library for reading/wriiting excel in ruby
- [HELP] - Ruby Drag and Drop script on screen element in Mac OS
- [HELP] BUILD FAILED while Installing ruby-1.8.7-p371 in mac OS...
- `require': cannot load such file -- nokogiri (LoadError) in rubyXL
- UI drop down list pulled from database values in activescaffold