Need Some Guides on Solr with Rails

On Thu, Dec 8, 2011 at 12:46 AM, Somnath M. [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 S. ------------------------ [email protected]

twitter: @hassan