On Thu, Dec 8, 2011 at 12:46 AM, Somnath Mallick <[email protected]> wrote:
> java -version works from the command line. > I tried running the command from GitBash console coz on CMD it doesn't > work: > java -version &> /dev/null > > And it does not throw and error of any sort. Not sure what "works" and "doesn't work" above mean, so let's do this; create a file, let's say java.rb with # start def java_installed? `java -version &> /dev/null` $?.success? end puts java_installed? # end Then run it from the command line, e.g. ruby java.rb Let's see what the output is. -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

