[R-sig-Debian] rJava in R 2.8.1 on Ubuntu 8.10

Stefan Th. Gries stgries at gmail.com
Tue Jan 27 02:24:45 CET 2009


Hi all

I have problems installing rJava on my system.

######## My system:

> R.version # at R prompt
platform       x86_64-pc-linux-gnu
arch           x86_64
os             linux-gnu
system         x86_64, linux-gnu
status
major          2
minor          8.1
year           2008
month          12
day            22
svn rev        47281
language       R
version.string R version 2.8.1 (2008-12-22)

> java -version # at terminal prompt
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
stgries at stgries-acer:~$

on Ubuntu 8.10 (Kernel 2.6.27-9)
on an AMD Phenom Triple-Core



The problem arises here:

java libs   : '-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server
-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
-L/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64 -L
-L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib
-ljvm'
configure: error: Java Development Kit (JDK) is missing or not registered in R
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.

When I then do that

> sudo R CMD javareconf # at terminal

I get this:

Updating Java configuration in /etc/R
Done.

However, it still doesn't work, returning the same crap as before.
Also, when I try

> R CMD javareconf -e # at terminal

I just get

shift: 57: can't shift that many

Any hints would be much appreciated
STG



More information about the R-SIG-Debian mailing list