JAVA_HOME is not set for RJB

I install RJB ruby ​​gem on UBUNTU 11. * I added

export JAVA_HOME=/usr/lib/jvm/java-6-... export PATH=$PATH:$JAVA_HOME/bin 

to the .bashrc in the home directory. But still this generates an error or JAVA_HOME not set.

Does anyone know what is wrong?

echo $JAVA_HOME shows exactly the right path. And I logged in again, even rebooted. But still it produces the same error.

+4
source share
1 answer

I ran the same issue on Ubuntu 10.04. What ultimately worked for me was to have su in the root directory and install:

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

Source: https://habr.com/ru/post/1446872/


All Articles