Displaying 20 results from an estimated 7000 matches similar to: "how to make JAVA available for R use?"
2010 Aug 03
1
xlsx package
HI, I was trying to install xlsx package for reading in Excel 2007 files. The
installation went smoothly. But when I tried to load the library, I got the
following error message:
> library(xlsx)
Loading required package: xlsxjars
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'xlsxjars', details:
call: .jinit()
error: cannot obtain
2020 Mar 29
3
status of Java & rJava?
On 29/03/2020 04:07, Simon Urbanek wrote:
> Spencer,
>
> you could argue that Java is dead since Oracle effectively killed it by removing all public downloads, but if you manage to get hold of a Java installation then it works just fine with R. To my best knowledge there has never been an issue if you installed rJava from source. macOS Catalina has made binary distributions impossible
2018 Mar 28
1
R and Java 10 ➜ rJava not able to build
Hi Jeff!!
I really don?t know if running R CMD javareconf with sudo has posed a problem here, now or in the past. What I know is sometimes it?s the only way to really config it, if I don?t run with sudo, in the end it asks me if I want to overwrite the configuration from root
override rw-r--r-- root/admin for
/usr/local/Cellar/r/3.4.4/lib/R/etc/Makeconf? (y/n [n]) y
override rw-r--r--
2018 Mar 28
0
R and Java 10 ➜ rJava not able to build
I am not a Mac user, but I do use Linux and I would recommend not running R with sudo unless you are an admin ninja. That defensive practice would render the answer to your question moot.
It is possible that your problem may have started with inappropriate use of sudo in configuring java, but configuring Java is not on-topic here.
--
Sent from my phone. Please excuse my brevity.
On March 27,
2018 Mar 27
7
R and Java 10 ➜ rJava not able to build
Hi!
I?m on macOS 10.13.3 and just installed the new Java 10 using Homebrew Cask. I also have installed R with Homebrew. Everything seems to work fine, however I just get different outputs if I run sudo R CMD javareconf or R CMD javareconf. With sudo I get pointed to Java 9 and without sudo I get pointed to Java 10. I really don?t know why.
Without sudo:
$ R CMD javareconf
2010 Aug 13
1
Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error
Installing rJava fails consistently, whether installed via
the command line as below, or through "install.packages(
'rJava' )", and whether 0.84 or 0.85 is used, with the
message :-
"checking JNI data types... configure: error: One or more
JNI types differ from the corresponding native type. You may
need to use non-standard compiler flags or a different
compiler in order to
2019 Jan 22
3
So nearly there, but can't install rJava
Thanks Dirk and Enrico,
First clarification: I'm in this mess because I'm trying to run R 3.5.2 within Debian stable (9/"sretch") using the stretch-cran35 repository. That uses and provides r-api-35 but many of the packages depend upon r-api-3. As Johannes said a day or so back, the way around this is to use install.packages() in R to get the packages you want. That leads you
2009 Feb 28
2
Using JRI and Java 1.6 on MAC OS X
Dear R-Help,
I am trying to get JRI (the rJava interface allowing Java to connect
to R) to work. I was able to run it a week ago when I was doing some
testing using Java 1.5. However, I am developing a GUI application
using some of the new Java 1.6 features and I just can't get JRI to
work with this setup.
Here is what I get:
Cannot find JRI native library!
Please make sure that the JRI
2012 Feb 18
1
help updating package rJava (on ubuntu)
Esteemed useRs and Devs,
Attempts to update package:rJava to the latest version have failed. See
my code and output below.
Notably, as suggested here
http://stackoverflow.com/questions/3311940/r-rjava-package-install-failing
$ sudo apt-get install r-cran-rjava
ran successfully without error or warning, but my rJava package is not
updated, and remains un-updatable...
Greatly appreciate any
2010 Mar 05
2
install rJava in linux
Hi
I'm a problem with installing "rJava" in Linux
I have got in my system : java-sun, java-sun-tools, java-sun-jre
but if I wont install rJava I got a problem like this:
> install.packages("rJava", dependencies = TRUE)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://cran.mirroring.de/src/contrib/rJava_0.8-2.tar.gz'
Content type
2017 May 17
2
r-cran-rjava dependencies on debian jesse, library(rJava) fails when default-jre is missing
Hi,
> Le 17 mai 2017 ? 00:42, Dirk Eddelbuettel <edd at debian.org> a ?crit :
>
>
> On 8 May 2017 at 15:39, Vaidotas Zemlys wrote:
> | Hi,
> |
> | Dirk Eddelbuettel advised me to write here. Here is my original letter to him:
> |
> | I would like to enquire about package r-cran-rjava on Debian jesse. It seems that if default-jre package is not installed, but
2019 Jan 22
4
So nearly there, but can't install rJava
As ever, I learn from this: I didn't know apt-file. Got it, installed it, used it:
root at DebianAdvent:/home/chris/Downloads/gmp-6.1.2# apt-file search jni.h
android-libnativehelper-dev: /usr/include/android/nativehelper/jni.h
android-platform-frameworks-native-headers: /usr/include/android/android/asset_manager_jni.h
android-platform-frameworks-native-headers:
2007 Jun 14
1
JGR, Java and Kubuntu 7.04 ...
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:
>
2009 Mar 26
1
Some install package fixes for Ubuntu Hardy
I encountered some failures in using install.packages() to install rgl
and rJava in some of my (multiple) Ubuntu Hardy systems. A quick search
of the 'Net did not show any debian packages for these. The
install.packages messages said header or other files were missing,
suggesting path and related woes. Email with Duncan Murdoch (thanks!)
pointed the way with rgl and led to a fix for rJava
2011 Jul 15
2
Problem in installing rJava from source
Hi all, I was trying to install rJava package (some older version) from
source. However could not achieve using "Rcmd build -binary rJava" syntax
with windows cmd. The building process stopped with following error:
ERROR*> JavaSoft\{JRE|JDK} can't open registry keys.
ERROR: cannot find Java Development Kit.
Please set JAVA_HOME to specify it's location normally
ERROR:
2008 Jun 03
1
R-2.7.0 rJava installation failure on x86_64
attempting to install rJava on R-2.7.0, x86_64 platform, config.log shows the
following error:
configure:3880: checking whether JNI programs can be compiled
configure:3898: gcc -m64 -std=gnu99 -o conftest -g -O2
-I/path/to/x86-64-linux/jdk-1.6.0_06/jre/../include conftest.c
-L/path/to/x86-64-linux/jdk-1.6.0_06/jre/lib/amd64/server
-L/path/to/x86-64-linux/jdk-1.6.0_06/jre/lib/amd64
2011 Aug 15
2
Problem loading rJava...
Morning All:
Having problems installing this one into my R setup and wondered if
anyone on the list had the same problem and found a workable solution.
First to the system particulars:
OS is the Hardy Heron edition of Ubuntu Linux
R version is 2.13.1
Java installation is sun-java6
Next up is the result of javareconf:
R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.5.0
2006 Apr 15
2
cannot load rJava in R
Hi all!
I recently tried to install the rJava package on my notebook (Debian Etch / Kernel 2.6.15 / jdk 1.5.0-5 / R 2.2.1 / rJava ?? the repo one, have a look below). I compiled R myself with "--with-readline=no" and "--enable-R-shlib flags". Now, each time loading the library rJava I encouter the same error. I reinstalled several times (as root), always the same problem:
2020 Mar 29
0
status of Java & rJava?
????? I spoke too soon in saying that everything worked with OpenJDK:?
"R CMD check Ecfun_0.2-4.tar.gz" using
"https://github.com/sbgraves237/Ecfun" worked fine on my Mac but failed
with "error: DLL 'rJava' not found: maybe not installed for this
architecture?" under Windows 10.? "00install.out" and
"Sys.getenv('PATH')"
2020 May 01
1
"not a valid win32 application" with rtools40-x86_65.exe on Windows 10
Hi, Jeroen et al.:
On 2020-04-30 03:15, Jeroen Ooms wrote:
> On Thu, Apr 30, 2020 at 6:38 AM Spencer Graves
> <spencer.graves at prodsyse.com> wrote:
>> Hello, All:
>>
>>
>> "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes:
>>
>>
>> Error: package or namespace load failed for 'Ecfun':