Skip to content
Prev 22753 / 398502 Next

install the SJava package on unix

Hi Xavier.

  The error message suggests that in loading SJava.so, the loader
cannot find the core Java library libjvm.so which is provided by in
your Java installation (JDK). Usually this is not installed somewhere
standard on your system and so, as you correctly surmized, you must
explicitly have the directory in your LD_LIBRARY_PATH. The scripts
RJava.bsh or RJava.csh that are installed with the SJava package in
the in the scripts/ directory of the package attempt to get the
correct values and will work for most JDKs. So before starting R,
execute

  . <wherever>/SJava/scripts/RJava.bsh
or for csh and tcsh shells
  source <wherever>/SJava/scripts/RJava.csh

and that will hopefully fix the proble.  Otherwise, find where
libjvm.so (and other libraries on which it depends (e.g. libhpi.so))
and manually add those directories to LD_LIBRARY_PATH.

 Hope this works.
  D.
Xavier.Abulker at fimat.com wrote:

  
    
Message-ID: <20020819091335.B10454@jessie.research.bell-labs.com>
In-Reply-To: <OFDC5E8591.1EE1BED1-ONC1256C1A.002E6EE1@fimat-france.fr>; from Xavier.Abulker@fimat.com on Mon, Aug 19, 2002 at 10:27:56AM +0200