[R] JGR, Java and Kubuntu 7.04 ...
edd at debian.org
Fri Jun 15 13:56:59 CEST 2007
On 15 June 2007 at 12:32, Stefan Grosse wrote:
| You could download the latest R (2.5.0) directly from CRAN, this just as
| a side remark, You find instructions here:
Yes indeed, thanks for our fearless backporters.
| With java you should make sure that you have the Java 5 JDK installed.
| I dont know how it is with Ubuntu but on fedora I have to set the java
| alternative (sun java installation does not change the default java
| there). Which java is installed you can check with java -version there
| you see it it is properly installed and a R CMD javareconf also
| indicates if your java is configured correctly. Additionally on Fedora I
| had to set JAVA_HOME to the JDK directory manually.
"It all worked" -- I don't run Java much myself, but I think starting with
the previous Ubuntu release and the actual Sun packages directly acessible
via apt-get, it worked.
However, with the current packages in my Kubuntu setup at work, I do get a
segfault once JGR is up and loaded. I suspect, as Stefan said here, that
this is due to the Java 6 packages in Ubuntu. As I said, sun-java5-jdk seems
to have work along with 'sudo R CMD javareconf', Simon's powerful Java
parameter setter for R.
In any event, we should carry this over to r-sig-debian.
| -------- Original Message --------
| Subject: [R] JGR, Java and Kubuntu 7.04 ...
| From: John Logsdon <j.logsdon at quantex-research.com>
| To: r-help at stat.math.ethz.ch
| Date: 14.06.2007 19:16
| > R-ists
| > Yet again Java rears its ugly head.
| > I have Kubuntu 7.04 running the Kubuntu-repository version of R 2.4.1-1.
| > Yes it isn't the very latest version but this is not the issue here.
| > I want a Windows-like environment and everyone is talking about JGR.
| > I downloaded it and installed it along with rJava. Both compile and install
| > satisfactorily.
| > But when I come to run it:
| >>> library('JGR')
| >> Loading required package: rJava
| >> Error in dyn.load(x, as.logical(local), as.logical(now)) :
| >> unable to load shared library
| >> '/usr/local/lib/R/site-library/rJava/libs/rJava.so':
| >> /usr/local/lib/R/site-library/rJava/libs/rJava.so: undefined symbol:
| >> JNI_GetCreatedJavaVMs Error: .onLoad failed in 'loadNamespace' for 'rJava'
| >> Error: package 'rJava' could not be loaded
| > When I first tried to run it without Java being installed, I got a message
| > saying that JDK wasn't installed but mentioned 1.4.2. The version of Java
| > actually installed as the latest from the Ubuntu repository is Sun 126.96.36.199.
| > I don't see the point in installing old versions of Java just for one
| > application because the language, or at least the writing, should be
| > backwards compatible.
| > In all aspects I have seen Kubuntu is a very impressive in checking
| > compatibility. Unfortunately this is frequently not the case with Java. I
| > steer clear of Java as much as possible.
| > Can anyone suggest what I should do? Use Windows perhaps? Run Windows in a
| > kvm virtual machine just to run R? Put my head in a bucket of cold water?
| > Is there an alternative IDE? Is there a later JGR somewhere that is not yet
| > on CRAN?
| > TIA
| R-help at stat.math.ethz.ch mailing list
| PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
| and provide commented, minimal, self-contained, reproducible code.
Hell, there are no rules here - we're trying to accomplish something.
-- Thomas A. Edison
More information about the R-help