Deploying with Capistrano, JAVA_HOME is not being read
===

I am deploying with Capistrano and everything looked good until I got to Rjb part..

I can do 

    $ echo $JAVA_HOME
     /usr/lib/jvm/java-1.6.0-openjdk-amd64
 

More than that, I can do gem install rjb on server and it is getting installed...

However when I try:

    $ cap bundle:install 

I get

    ** [out :: ec-...compute-1.amazonaws.com] extconf.rb:53:in `<main>': JAVA_HOME is not set. (RuntimeError)


