Answering my own post. On the particular machine in question, I managed to
install rJava after installing
(in the OS) libbz2-dev and liblzma-dev. There was a hint of this in the install
output,
but not as clear as would help a novice.
JN
__
R-help@r-p
Hi Martin,
Thanks for providing the reference.
In this particular case, it helped me to discover that 13 JVM threads
were garbage collecting in parallel, occasionally resulting in a race
condition. Setting
options(java.parameters = "-XS:ParallelGCThreads=1")
appears to resolve the issue
Thanks Jeff; indeed it works:
.jcall("java/lang/System", method = "gc")
On 02/05/2018 11:53 PM, Jeff Newmiller wrote:
rJava offers a mechanism to call arbitrary methods in Java. Wouldn't you use
that mechanism to call whatever you would call if you were programming in Java
(e.g. System.gc
On 6 February 2018 at 04:34, Benjamin Tyner wrote:
> Hi
>
> Does rJava offer a way to instruct the JVM to perform a garbage collection?
Do you really, really need to run the garbage collector?
Consider reading:
https://stackoverflow.com/questions/5086800/java-garbage-collection
Regards
Martin
rJava offers a mechanism to call arbitrary methods in Java. Wouldn't you use
that mechanism to call whatever you would call if you were programming in Java
(e.g. System.gc)?
--
Sent from my phone. Please excuse my brevity.
On February 5, 2018 7:34:17 PM PST, Benjamin Tyner wrote:
>Hi
>
>Does
I can't think of a more appropriate time to point out that there is an
r-sig-debian mailing list that focuses on operating-system-related issues like
this.
--
Sent from my phone. Please excuse my brevity.
On June 25, 2017 6:47:10 PM EDT, Lorenzo Isella
wrote:
>Dear All,
>I think there is some
Many thanks and will post accordingly.
Tolga
> On Jan 5, 2017, at 3:08 PM, Jeff Newmiller wrote:
>
> I would guess that you don't have the Java runtime installed, or that the
> wordsize (32 or 64 bit) runtime you have installed is not compatible with the
> wordsize of the version of R that you
I would guess that you don't have the Java runtime installed, or that the
wordsize (32 or 64 bit) runtime you have installed is not compatible with the
wordsize of the version of R that you are using.
You really should read and heed the Posting Guide, which mentions things like
mentioning your
I have solved the problem. Here are the steps in case this will help
anyone.
1) I downloaded, compiled, and installed latest R sources.
2) made sure I had all of the R development libraries install through
packages manager
3) update java jkd 1.6* to java jkd 1.7*
4) ran sudo R CMD javareconf
JAVA_
Included at the end of this message is the full compiler output. I have
installed jre-7 from Oracle; The java-1.7.0-jdk* packages and javacc are
installed. It looks like the archiver, header prep., and compiler are
missing. I can provide anything else that can help solve my problem. I
really apprec
Don't know anything about SL but have you installed a Java run time independent
of R?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
On Mon, Feb 2, 2015 at 1:39 PM, stephen sefick wrote:
> Hello all,
>
> I am having a problem with installing rJava on SL 6.5. I am having compile
> errors when I try to from CRAN using install.packages("XLConnect", repos="
> http://cran.rstudio.com/";). I can provide anything necessary, but I am
>
Thank you very much for your answer. I will look further into R Service Bus.
In the meantime, I have posted an issue on GitHub
https://github.com/s-u/rJava/issues/32 where I describe a way to reproduce the
unexpected behaviour.
Kind regards,
Ben
Le 30 sept. 2014 � 12:23, Mohan Radhakrishnan
Hi,
You could ask the author or post an issue here .(
https://github.com/s-u/rJava)
I had faced a problem and I got a response from him.
In my case I am streaming JVM data and this(
http://www.openanalytics.eu/r-service-bus) may be a better idea. I haven't
still tried this.
Thanks,
Mohan
"What could be the reason" might be that you don't have 64bit Java runtime
installed. Either install that, or if you have 32bit Java runtime installed
then you could try running the 32 bit version of R.
---
Jeff Newmiller
On May 30, 2014, at 9:55 AM, Bond, Stephen wrote:
>
> R version 3.1.0 (2014-04-10) -- "Spring Dance"
> Copyright (C) 2014 The R Foundation for Statistical Computing
> Platform: i386-w64-mingw32/i386 (32-bit)
>
>> library(rJava)
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
>
On 15/01/2014 20:20, Collin Lynch wrote:
I'll echo this and expand. Hui it is possible, indeed likely, that you
are running a 32bit version of Java. In that case the error may be
attributed to a miscommunication between the two.
You can check you java version by running "java -version" in the
I'll echo this and expand. Hui it is possible, indeed likely, that you
are running a 32bit version of Java. In that case the error may be
attributed to a miscommunication between the two.
You can check you java version by running "java -version" in the command
prompt. If it is 64 bit it will te
Post plain text per the posting guide?
Install the 64bit version of the Java Runtime?
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
I encountered the same problem a couple of days ago. I found simply
re-installing JASA (the 64bit one) would straighten out the Registry
entries:
http://java.com/en/download/manual.jsp
=
Xiaogang Su, Ph.D.
Associate Professor
Department of Mathematical Sciences
Univers
Thank you Rob. I used to have the 64-bit R also installed, but removed it and
did not reinstall it. I also cleared out all rJava.dll files on my computer
before reinstalling R fresh. I am running R through Rgui, not Rstudio. I will
post RVersion data later once I return to my PC, apologies.
Se
You don't really provide enough information like
R.Version()
but my guess is that you are running 64-bit R either directly or through
R Studio but that you have only 32-bit Java installed. I am doing fine
on Windows with Java 7 update 45 but had some 64-bit run issues with
only Java 7 updat
same problem I'm having...
https://groups.google.com/forum/#!topic/shiny-discuss/ivJzaaUIZcQ
On Sunday, December 8, 2013 10:55:02 PM UTC+8, neo wrote:
>
> A small follow-on to this: I uninstalled the package, restarted my
> machine, and reinstalled the package. Now, when I try and load the
>
A small follow-on to this: I uninstalled the package, restarted my
machine, and reinstalled the package. Now, when I try and load the
package, I get an entirely different error message:
> library("rJava")
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical
Hurr,
You have not given us much to help with here. You might try posting a
specific problem here or on rosuda-devel users group, the developer
group for rjava and other omegahat projects.
Otherwise, start programming and see what work. I am trying to get Jsoup
and/or htmlunit to work with
No answers in the three days. Does anyone use rjava?
If no one uses it, then I am afraid to try.
Or is it extremely easy?
--
View this message in context:
http://r.789695.n4.nabble.com/rjava-be-carefuls-tp4678102p4678201.html
Sent from the R help mailing list archive at Nabble.com.
__
Joe Byers aim.com> writes:
Sorry I forgot a subject.
This thread is for rJava not seeing the htmlunit java package
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.o
Thanks again, Brian.
Indeed, I had Java for 32 bits. Replaced it and rJava is working now.
On Thu, Jun 6, 2013 at 10:58 AM, Prof Brian Ripley wrote:
> On 06/06/2013 15:52, Dimitri Liakhovitski wrote:
>
>> Thank you very much, Brian.
>> It's clearly christal clear - but one needs a christal ball
On 06/06/2013 15:52, Dimitri Liakhovitski wrote:
Thank you very much, Brian.
It's clearly christal clear - but one needs a christal ball to realize
that! :-)
So I learned: architecture = bitness
On current Windows, yes.
But not on OS X nor Linux nor Solaris nor FreeBSD
It indicates the ty
Thank you very much, Brian.
It's clearly christal clear - but one needs a christal ball to realize
that! :-)
So I learned: architecture = bitness
Dimitri
On Thu, Jun 6, 2013 at 2:19 AM, Prof Brian Ripley wrote:
> On 06/06/2013 00:38, Dimitri Liakhovitski wrote:
>
>> Hello!
>> I installed rJa
On 06/06/2013 00:38, Dimitri Liakhovitski wrote:
Hello!
I installed rJava and am trying to load it.
library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try
re-installing Ja
For what it is worth Spencer, I can start rJava in both 32-bit R and
64-bit R for Windows 7. [And could even before Simon fixed the error
message).
And yes, I have both 32-bit Java and 64-bit Java 1.7.0_13 installed.
They should be separate entries under your control panel.
Rob
--
Robert
On Feb 5, 2013, at 5:51 PM, Spencer Graves wrote:
> On 2/4/2013 3:55 PM, Simon Urbanek wrote:
>> On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:
>>
>>> On 2/4/2013 7:03 AM, Simon Urbanek wrote:
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
> On 2/4/2013 5:22 AM, Milan Bouch
On 2/4/2013 3:55 PM, Simon Urbanek wrote:
On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:
On 2/4/2013 7:03 AM, Simon Urbanek wrote:
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a éc
On Feb 4, 2013, at 7:14 PM, Spencer Graves wrote:
> On 2/4/2013 7:03 AM, Simon Urbanek wrote:
>> On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
>>
>>> On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
> On Feb 4, 2013, at
On 2/4/2013 7:03 AM, Simon Urbanek wrote:
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
On 2/3/2013 11:21 PM, Pascal Oettli
> Is it feasible to have both installed in a way that allows the
each version of R to select its own version of Java? A comment on
stackoverflow suggests that may not be easy
(http://stackoverflow.com/questions/5272216/is-it-possible-to-install-both-32bit-and-64bit-java-on-windows-7).
On
On Feb 4, 2013, at 10:27 AM, Spencer Graves wrote:
> On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
>> Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
>>> On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
>>>
On 2/3/2013 11:21 PM, Pascal Oettli wrote:
> Hello,
>
>>>
On 2/4/2013 5:22 AM, Milan Bouchet-Valat wrote:
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
On 2/3/2013 11:21 PM, Pascal Oettli wrote:
Hello,
Do you have a 64-bit version of Java?
rJava says to you:
call: stop("No Current
On 2/3/2013 11:21 PM, Pascal Oettli wrote:
Hello,
Do you have a 64-bit version of Java?
rJava says to you:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing
Java and make sure R and Java have matching architectures.")
I think I probably have a 32-bit version and not
Le lundi 04 février 2013 à 08:19 -0400, Simon Urbanek a écrit :
> On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
>
> > On 2/3/2013 11:21 PM, Pascal Oettli wrote:
> >> Hello,
> >>
> >> Do you have a 64-bit version of Java?
> >>
> >> rJava says to you:
> >> call: stop("No CurrentVersion entry i
On Feb 4, 2013, at 6:33 AM, Spencer Graves wrote:
> On 2/3/2013 11:21 PM, Pascal Oettli wrote:
>> Hello,
>>
>> Do you have a 64-bit version of Java?
>>
>> rJava says to you:
>> call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java
>> and make sure R and Java have matching
Hello,
Do you have a 64-bit version of Java?
rJava says to you:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing
Java and make sure R and Java have matching architectures.")
Regards,
Pascal
Le 04/02/2013 14:27, Spencer Graves a écrit :
Hello:
rJava works for m
On Jun 27, 2012, at 12:16 AM, fabin.ittiachan wrote:
> Hi,
>
> I'm receiving an error when I am trying to install rJava. I have posted the
> error below.
>
Your R was not compiled with --enable-R-shlib so you can't use JRI (see
http://rforge.net/rJava). You can either disable JRI (if you don't
Hi Matthew,
The problem is that the underlying JVM is running with a fixed maximum heap
size. When you load a workbook in XLConnect, an in-memory representation of
that workbook is created (in Java by Apache POI). Reading and writing data
additionally requires memory due to "communication" of your
Hello all.
Steven's approach didn't work for me. I'm running 64 bit R
> R.Version()
$platform
[1] "x86_64-pc-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
and downloaded and installed the 64 bit version of Java directly from
Oracle. I then tried to load the rJa
Thanks for the information, Simon.
I had both the 64-bit version of R and the 64-bit Windows 7, but not the
64-bit version of Java.
Now that I've downloaded the proper version of Java, the problem has been
solved.
Thanks -
SR
Steven H. Ranney
On Mon, Oct 15, 2012 at 5:12 PM, Simon Knapp wro
My guess would be that your running the 32 bit version of R - and
rJava is looking for the 64 bit dll. I'd suggest starting the 64 bit
version of R explicitly (e.g. the 64 bit version of Rgui lives at
/bin/x64/Rgui.exe, whereas the 32 bit version lives at
/bin/i386/Rgui.exe).
On Tue, Oct 16, 2012
solved grrr
I had to set JAVA_HOME to point to the jdk directory not the parent.
This had to be done as root not user otherwise the rJava is fails.
At the end of the day its installed.
--
View this message in context:
http://r.789695.n4.nabble.com/rJava-RCMD-javareconf-fails-tp4488961p44
Another question: how do I ensure rJava is bytecode-compiled? I seem
to re-install the package with setting compilePKGS(T) before i install
it again, but most of rJava functions however seem to come back still
as not bytecode-compiled.
Thank you in advance.
-dmitriy
On Fri, Mar 16, 2012 at 3:48 P
The "low level" seems to be much-much better though... not sure why
the difference would be so fundamental...
f <- function() system.time( for( i in 1:1000)
.jcall("java/lang/Math", returnSig="D", "abs", as.numeric(i) ) )
> f()
user system elapsed
0.080 0.000 0.083
On Fri, Mar 16, 2012
PS caching reference to the class doesn't change anything fundamentally:
clazz <- J("java.lang.Double")
system.time( for( i in 1:1000) clazz$ parseDouble(as.character(i)))
user system elapsed
3.788 0.000 3.790
Java parsing is slow??? nope, still looking pretty appalling for what it does
i saw an example in
http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg76159.html
but an error occur
Error in .jcall(“my_convolve”, “[D”, “convolve”, x, y) :
RcallMethod: cannot determine object class
because the directory of classpath?
--
View this message in context:
http://r.789695.n4.n
u get the solution? if yes, please share it. i face same problem too
--
View this message in context:
http://r.789695.n4.nabble.com/RJava-help-tp2995886p4419945.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org maili
On 11.01.2012 22:51 (UTC+1), Hasan Diwan wrote:
Trying to install Rjava on FreeBSD 9 and am getting the following error:
install.packages('rJava')
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rJava_0.9-3.tar.gz'
Content type 'application/x-gzip' length 537153 bytes (524 Kb)
opened URL
=
See
http://www.rforge.net/rJava/
and
http://www.rforge.net/JRI/
Uwe Ligges
On 29.12.2011 07:46, PermataRussiana wrote:
Dear All,
I am writing R code and I want to interface with JAVA using netbeans.
I want to call R from JAVA. What i should pick?rJAVA or JRI?
and can someone provide m
Hi,
I have the same problem in R, and I want to ask you that how to solve the
problem.
Thank you very much.
Wang
2011-11-14
ahwangyuwei
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
Your internet connection is flaky,
your first try just downloaded half the package, on the second try you
got almost nothing (your output says 2519 bytes). So this is your
connection rather than R or rJava.
Uwe Ligges
On 01.09.2011 15:37, R. Michael Weylandt wrote:
Good Morning,
I'm t
Install an appropriate version of Java that fits to your R installation
(i.e. 64-bit Java for 64-bit R and so o, but you have not told us any
details as the psoting guide asks you to do).
Uwe Ligges
On 16.08.2011 01:40, Phil Schnarrs wrote:
Hello All,
I'm trying to load the rJava package
(Dirk: I mistakenly sent this to you directly: I meant to post it to R
help. Sorry)
On 8/6/11 8:16 AM, Dirk Eddelbuettel wrote:
a) Did you try 'sudo apt-get install r-cran-rjava' ? This is after all
packaged in Debian
b) The Debian rjava package has 'openjdk-6-jdk' in its Build-Depends,
On 8/6/11 9:37 AM, Dirk Eddelbuettel wrote:
| I'm going to be using rJava as part of a package I'm developing, so I
| need to be able to install it in a more generic way than the Debian
Care to define "more generic way than Debian" ?
^ I mean:
(i) Install Java from Oracle
(ii) run R CMD javare
On 8/6/11 9:37 AM, Dirk Eddelbuettel wrote:
| I'm going to be using rJava as part of a package I'm developing, so I
| need to be able to install it in a more generic way than the Debian
Care to define "more generic way than Debian" ?
^ I mean:
(i) Install Java from Oracle
(ii) run R CMD javare
(Dirk: I mistakenly sent this to you directly: I meant to post it to R
help. Sorry)
On 8/6/11 8:16 AM, Dirk Eddelbuettel wrote:
a) Did you try 'sudo apt-get install r-cran-rjava' ? This is after all
packaged in Debian
b) The Debian rjava package has 'openjdk-6-jdk' in its Build-Depends,
On 5 August 2011 at 23:19, Barnet Wagman wrote:
| Has anyone successfully installed rJava on Debian squeeze (or any other
| version of linux)?
|
| I keep getting the
|
| ... (JDK) is missing or not registered in R
|
|
| error message when installing the package.
|
| I've tried running 'R
On Tue, 26 Apr 2011, Wincent wrote:
I believe this posting is placed, and I take the liberty to re-direct
to the r-help mailing list.
But this is *NOT* the support list for rJava: that is
http://rosuda.org/lists.shtml
In particular the author of rJava does not monitor R-help.
Regards,
Rong
I believe this posting is placed, and I take the liberty to re-direct
to the r-help mailing list.
Regards,
Ronggui
On 26 April 2011 12:33, wrote:
> I am trying to create a web user interface using RApache. I need to install
> rJava packge but I am getting the following error message
>
> RApac
Hello,
it seems that rJava tries to detect the path to the Java Virtual Maschine
from a registry key which is not installed. I gues that the HLM means
HKEY_LOCAL_MASCHINE where you find normally the path to your installed Java.
On my Windows System i have for example the path
HKEY_LOCAL_MASCHINE\S
sn't clear what this thing finds.
if you do something like "which -a java" and "which -a javac" you may see some
issues.
Date: Mon, 14 Feb 2011 11:33:49 +0200
From: orvaq...@gmail.com
To: rip...@stats.ox.ac.uk
CC: r-help@r-pro
Sorry for this delay. I have installed rjava on Fedora, CentOS and Debians.
The secret is to install java and configure de java variables. The easiest
way for R is:
R CMD javareconf
It will detect your java envoriment and preconfigure R for you.
Then run: R CMD INSTALL rJava etc as you did.
Ca
This isn't the right place (rJava has its own support lists), but
- that is not the Java package installed on any version of Fedora I
have seen, and you might want to try the native openjdk version.
- the JAVA_HOME used by the build is not what you show, as it is
looking in /opt/jre1.6.0_22/i
public class my_convolve
{
public static void main(String[] args)
{
}
public static void convolve()
{
System.out.println("Hello");
}
}
library(rJava)
.jinit(classpath="C:/Documents and Settings/GV/workspace/Test/bin",
pa
Le 14/10/10 20:28, lord12 a écrit :
I need help with RJava. So I run this R code:
library(rJava) #load the rJava library
.jinit(classpath="c:/Documents and Settings/GV/workspace/Test/src",
parameters="-Xmx512m")
#the above is to load the Java virtual machine,
x = runif(1000)
y = runif(1000)
#t
On Aug 18, 2010, at 12:18 AM, Sigal Blay wrote:
> I'm writing a package that successfully calls Java from R using rJava.
> When R sends my Java function bad data (through .jcall()),
> I get the error message details (when I run it on a console)
> and then:
>
> Java requested System.exit(1), clo
Hello,
On 10/28/2009 12:21 AM, Robert Baer wrote:
I am out of my league with this question. The following code starts the java
imaging program ImageJ from within R, and displays an image (assuming ImageJ is
installed on your computer).
It does not assume ImageJ is installed, a version of
On 09/17/2009 07:30 AM, _ wrote:
Hi all,
when using .jinit() I get the message .jinit() : Cannot create Java
virtual machine (-1).
You probably also need to set JAVA_HOME to that location, and have the
bin directory (the one that contains java.exe) in your PATH as well.
Usually, support for
Hi,
On Aug 26, 2009, at 1:31 PM, Harsh wrote:
Hi R List,
I get this error using StatET R plugin in Eclipse.
You might have more luck asking the StatET user mailing list:
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/statet-user
-steve
--
Steve Lianoglou
Graduate Student: Com
Done !
>
> > install.packages("rJava")
> Warning in install.packages("rJava") :
> argument 'lib' is missing: using
> '/home/martial/R/x86_64-unknown-linux-gnu-library/2.9'
> trying URL 'http://cran.fr.r-project.org/src/contrib/rJava_0.6-2.tar.gz'
> Content type 'application/x-tar' lengt
I completely removed the java-sun version and install the openjdk instead.
I re-launched the R CMD reconf.
The installation still failed !
> install.packages("rJava")
Warning in install.packages("rJava") :
argument 'lib' is missing: using
'/home/martial/R/x86_64-unknown-linux-gnu-library/2
Thanks for your prompt reply Martin. That should work, but still involves
changing the java code.
I was just hoping there might be an obvious solution I was missing. Sorry
for the mailing list wrongness. I didn't realise there was an rJava mailing
list.
Thanks,
ben
On 19/02/2008, Martin Morgan <
79 matches
Mail list logo