..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? many thanks & regards,christian "C:\\WINNT\\system32\\os2\\dll;" Path "C:\\latex\\texmf\\miktex\\bin\\;C:\\server\\cvs;C:\\server\\perl\\bin;C:\\server\\apache\\php;C:\\server\\mysql\\bin;C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;C:\\chris\\Tcl\\bin;C:\\chris\\dm\\SUPERQ~1;c:\\chris\\dm\\rw1070\\library\\Sjava\\libs;" PATHEXT ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH" PROCESSOR_ARCHITECTURE "x86" PROCESSOR_IDENTIFIER "x86 Family 6 Model 7 Stepping 1, AuthenticAMD" PROCESSOR_LEVEL "6" PROCESSOR_REVISION "0701" ProgramFiles "C:\\Programme" R_HOME "C:\\chris\\dm\\rw1070" R_USER "C:" SystemDrive "C:" SystemRoot "C:\\WINNT" TCL_LIBRARY "C:\\chris\\dm\\rw1070/Tcl/lib/tcl8.4" [[alternate HTML version deleted]]
Christian, this may occur if the environment variable JAVA_HOME is not set. Windows help ("environment variables, adding") explains how to do this. Regards, Andrew C. Ward CAPE Centre Department of Chemical Engineering The University of Queensland Brisbane Qld 4072 Australia andreww at cheque.uq.edu.au ----- Original Message ----- From: "Christian Schulz" <ozric at web.de> To: <r-help at stat.math.ethz.ch> Sent: Friday, April 25, 2003 7:04 PM Subject: [R] sjava w2k> ..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? > > > > many thanks & regards,christian > > >"C:\\WINNT\\system32\\os2\\dll;">Path>"C:\\latex\\texmf\\miktex\\bin\\;C:\\server\\cvs;C:\\server\\perl\\bin;C:\\s erver\\apache\\php;C:\\server\\mysql\\bin;C:\\WINNT\\system32;C:\\WINNT;C:\\ WINNT\\System32\\Wbem;C:\\chris\\Tcl\\bin;C:\\chris\\dm\\SUPERQ~1;c:\\chris\ \dm\\rw1070\\library\\Sjava\\libs;">PATHEXT>".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH">PROCESSOR_ARCHITECTURE>"x86">PROCESSOR_IDENTIFIER>"x86 Family 6 Model 7 Stepping 1, AuthenticAMD">PROCESSOR_LEVEL>"6">PROCESSOR_REVISION>"0701">ProgramFiles>"C:\\Programme">R_HOME>"C:\\chris\\dm\\rw1070">R_USER>"C:">SystemDrive>"C:">SystemRoot>"C:\\WINNT">TCL_LIBRARY>"C:\\chris\\dm\\rw1070/Tcl/lib/tcl8.4"> > > > [[alternate HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
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