setting the JAVA_HOME environment variable

Thufir hawat.thufir at
Mon Mar 24 08:35:38 UTC 2008

On Mon, 24 Mar 2008 07:52:51 +0000, Thufir wrote:

> what's the correct way to set the JAVA_HOME environment variable?

Well, apparently this is causing problems beyond Java per se :(

The rjb gem fails to install.  I followed these directions:

Ubuntu: Ubuntu is a popular Linux distribution. Here are specific 
instructions for
installing Buildr and its prerequisite packages on recent versions of 
(Dapper, Edgy, Feisty and Gusty):
  $  sudo  apt-get install ruby
  $  sudo  apt-get install ruby1.8-dev
  $  sudo  apt-get install build-essential
  $  sudo  apt-get install libopenssl-ruby
  $  sudo  gem install buildr

The package which buildr seems hung on is the rjb gem.  The install for 
this gem seems to be failing due to the JAVA_HOME environment variable 
(from what I can tell):

thufir at arrakis:~$ 
thufir at arrakis:~$ cat /var/lib/gems/1.8/gems/rjb-1.1.2/ext/gem_make.out
ruby extconf.rb install rjb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
extconf.rb:33: JAVA_HOME is not directory. (RuntimeError)
thufir at arrakis:~$ 
thufir at arrakis:~$ echo $JAVA_HOME
thufir at arrakis:~$ 
thufir at arrakis:~$ 

More information about the ubuntu-users mailing list