From simon.urbanek at r-project.org  Mon Feb 20 19:15:18 2006
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon, 20 Feb 2006 13:15:18 -0500
Subject: [Rd] R CMD config --cppflags buglet
In-Reply-To: <17401.62948.818551.564413@basebud.nulle.part>
References: <17401.53474.442624.424119@basebud.nulle.part>
	<Pine.LNX.4.64.0602201431330.28459@gannet.stats.ox.ac.uk>
	<17401.60588.104174.467342@basebud.nulle.part>
	<3999B172-8A10-442E-B924-0D291CFB0C15@r-project.org>
	<17401.62948.818551.564413@basebud.nulle.part>
Message-ID: <12229378-F4A0-43ED-81CE-0B1B7AB6D790@r-project.org>


On Feb 20, 2006, at 12:01 PM, Dirk Eddelbuettel wrote:

> There is other small gotcha. I used the .deb packages sun-j2se5.0- 
> jdk-binary and sun-j2se5.0-jre-binary which may do things  
> differently from other JRE/JDK. In any event JGR came with
>   /usr/lib/j2se5.0-sun//bin/java -cp JGR.jar:. -Xmx512m  
> org.rosuda.JGR.JGR $*
> but the path ought to be /usr/lib/j2se5.0-sun/jre/bin/java (with an  
> added jre).  Not sure if this is worth worrying about.


This is determined from the system, so the jre package should make  
sure its "java" is picked first, otherwise you're creating a  
dependency on jdk - i.e. make sure your jre/bin comes before jdk's  
bin in PATH and everything should be fine.

A special case is when JAVA_HOME is set - I have updated JRI such  
that it will try ${JAVA_HOME}/jre/bin before ${JAVA_HOME}/bin in such  
case.

> | Another hack I suspect, but I'll have to ask Markus about this one.
>
> Can you let R's code from help.start() do the work for you?

Maybe - Markus, can you have a look or should I do it? I didn't see  
the JGR help code for a while, but I remember some overhaul was due -  
switching to help objects should possibly solve the whole issue,  
because R will handle all the paths then.

Cheers,
Simon



[Rd] R CMD config --cppflags buglet
Simon Urbanek