JAVA_HOME not setting for RJB

java-home, rjb

Solution

I've run the same issue in Ubuntu 10.04. What ended up working for me was to su into root and install:

sudo su -
export JAVA_HOME=/usr....
gem install rjb

Problem

I am installing RJB by ruby gem on UBUNTU 11.* I added the ``` export JAVA_HOME=/usr/lib/jvm/java-6-... export PATH=$PATH:$JAVA_HOME/bin ``` to the `.bashrc` file at home directory. But still it throws the err or `JAVA_HOME` not set. Does anyone know what is wrong? `echo $JAVA_HOME` shows exactly the right path. And I did log on again, even reboot. But still throws the same error.

Original source