[R] sjava w2k

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 25 13:35:35 CEST 2003


On Fri, 25 Apr 2003, Christian Schulz wrote:

> ..sorry for this "repeated" off-topic question, but i look
> for any suggestion in the manuals, find nothing related?
> 
> library(Sjava)
> Error in firstlib(which.lib.loc, package) : 
>         JAVA_HOME is not set
> Error in library(Sjava) : .First.lib failed
> 
> ...what i have to done?

Set JAVA_HOME!  I am presuming that this is from my build, but you didn't
give the origin.  You probably also need to follow the rest of the
installation instructions in

http://www.stats.ox.ac.uk/pub/bdr/SJava/ReadMe

The essence is

Sjava.zip -- unzip in ...\rw1062\library.  Having installed a Sun Java
JRE from java.sun.com (e.g. j2re-1_4_1_02-windows-i586-i.exe), you need to
set the environment variable JAVA_HOME to point to its top-level
directory.  The simplest way to so this is to create a file .Renviron
in either the working directory or your home directory (see the rw-FAQ)
and insert a line like

JAVA_HOME=c:/Program Files/Java/j2re1.4.1_02

For rw1070 you can (I believe) use install.packages to get the correct 
compiled version of SJava.zip, then set JAVA_HOME as above.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list