Displaying 20 results from an estimated 52 matches for "jinit".
Did you mean:
init
2007 May 17
2
.jinit() problem
Hello there.
When I try to start the jvm using .jinit() after loading library(rJava) I
don't seem to be able to as I get the message:
Error in .jinit() : Cannot create Java Virtual Machine
What is going on here? I have java 1.6 installed on my XP machine
Thanks again.
--
View this message in context: http://www.nabble.com/.jinit%28%29-prob...
2011 Nov 14
1
.jinit() : Cannot create Java virtual machine
Dear all,
when using .jinit() I get the message .jinit() : Cannot create Java
virtual machine (-1).
The details:
I am using the Dismo package.Dismo has a function 'maxent' that communi-cates with this program(MaxEnt).MaxEnt is available as a stand-alone Java program.
It is normal when I execute the command : &quo...
2007 Jul 23
0
Error in .jinit() : Cannot create Java Virtual Machine
Hey
I have seen a few posts asking this question and nobody has replied to them
so I will ask it again.
I have intalled java 1.6.0_22 on XP and rJava. I get the following msg when
i run .jinit()
"Error in .jinit() : Cannot create Java Virtual Machine".
can anybody help?
Java is working fine.
--
View this message in context: http://www.nabble.com/Error-in-.jinit%28%29-%3A-Cannot-create-Java-Virtual-Machine-tf4130764.html#a11747295
Sent from the R help mailing list archi...
2008 Mar 11
0
.jinit()
Dear list,
when I write .jinit(), the following error message coming out.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error in .jinit() : Cannot create Java virtual machine (-4)
I have C:\Program Files\Java\jre1.6.0_04 and C:\Program
Files\Java\jre1.6.0_05 both installed
Appreciat...
2012 Aug 08
1
Cannot create Java virtual machine (-1)
...ry to update it when I get exclusive access to the server, but in the meantime is there anything else anyone can suggest for this error?
Loading required package: XLConnectJars
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'XLConnectJars', details:
call: .jinit()
error: Cannot create Java virtual machine (-4)
Error: package 'XLConnectJars' could not be loaded
> library(rJava)
> library(XLConnect)
Loading required package: XLConnectJars
Error : .onLoad failed in loadNamespace() for 'XLConnectJars', details:
call: .jinit()
error:...
2011 Nov 14
0
rJava .jinit() : Cannot create Java virtual machine (-1)
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]]
2013 Nov 11
2
problem using rJava with parallel::mclapply
Dear all,
I got an issue trying to parse excel files in parallel using XLConnect, the
process hangs forever.
Martin Studer, the maintainer of XLConnect kindly investigated the issue,
identified rJava as a possible cause of the problem:
This does not work (hangs):
library(parallel)
require(rJava)
.jinit()
res <- mclapply(1:2, function(i) {
J("java.lang.Runtime")$getRuntime()$gc()
1
}, mc.cores = 2)
but this works:
library(parallel)
res <- mclapply(1:2, function(i) {
require(rJava)
.jinit()
J("java.lang.Runtime")$getRuntime()$gc()
1
}, mc.cores = 2)...
2009 Apr 05
1
RJava question(class not found with rJava's vm, though found with alternate vm)
Not sure if this the right place, but I can't seem to subscribe to the rJava
mailing list. Sorry for the noise.
I have a jar file in the CLASSPATH variable. On running .jinit and checking
.jclassPath, i can see the jar file containing the class. Yet when trying to
instantaite the class, i get a class not found error.
Now If if, create my own vm (see below), and then run .jinit (which will use
my vm), i can find the class in question (org.apache.hadoop.io.longwritable)...
2009 May 13
0
Segmentation fault in package rJava on CentOS server
...ME)/lib/i386/client
-L$(JAVA_HOME)/lib/i386 -L$(JAVA_HOME)/../lib/i386 -ljvm
JNI cpp flags : -I$(JAVA_HOME)/../include -I$(JAVA_HOME)/../include/linux
Package rJava got properly installed (there were a number of warnings,
though, in the installation process). However,
> library(rJava)
> .jinit("")
*** caught segfault ***
address 0xc, cause 'memory not mapped'
Traceback:
1: .External("RinitJVM", boot.classpath, parameters, PACKAGE = "rJava")
2: .jinit("")
Whenever I try to interact with Java from R --I am interested in the
RJDBC packag...
2010 Apr 28
1
rJava (installation?) problem: unable to find the basic String class
...C=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats???? graphics? grDevices utils???? datasets? methods?? base
other attached packages:
[1] rJava_0.8-3
loaded via a namespace (and not attached):
[1] tools_2.11.0
> require(rJava)
Loading required package: rJava
> .jinit()
Error in .jinit() : unable to find the basic String class
>
Any thoughts would be appreciated.
Piotr
2007 May 25
1
iplots problem
Hi. I try to load iplots using the following commands
> library(rJava)
> library(iplots)
but then I get the following error:
Error in .jinit(cp, parameters = "-Xmx512m", silent = TRUE) :
Cannot create Java Virtual Machine
Error in library(iplots) : .First.lib failed for 'iplots'
What do I have to do to correct this?
Thanks
--
View this message in context: http://www.nabble.com/iplots-problem-tf3815516.html#...
2017 Oct 21
2
Problem when trying to run Java in R:
Hello All,
Although running Java from R used to work, for some mysterious reason, it's stopped.
Today when I tried to load a basic JDBC driver (or the sample .jinit()) code, I got:
- JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
- JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
- JavaVM FATAL: Failed to load the jvm library.
I saw postings on StackOverflow about this issue, but none of the suggeste...
2017 Jun 26
3
rJava Broken on Linux + R 3.4
.../rJava/issues/110
A couple of packages (RJSDMX and xlsx) are now impossible to install
on my debian stretch platform running R 3.4.
It seems I am not the only one experiencing this and it may be due to
some security patches just released.
However, if I run on my machine
> library(rJava)
> .jinit()
I get a segmentation fault, though I was able to install rJava, it
does not seem to work properly.
Does anyone have a fix for that?
Many thanks
Lorenzo
2007 Sep 27
2
rJava and RJDBC
...[9] "C:\\Libraries\\PJM\\webserviceclient.jar"
[10] "C:\\Java\\Libraries\\QTJava.zip"
My java_Home is
> .jcall('java.lang.System','S','getProperty','java.home')
[1] "C:\\Java\\jre1.6.0_02"
I have tried breaking down the JDBC as
.jinit() or .jinit(classPath)
v<-.jcall("java/lang/ClassLoader","Ljava/lang/ClassLoader;",
"getSystemClassLoader")
.jcall("java/lang/Class", "Ljava/lang/Class;",
"forName", as.character(driverClass)[1], TRUE, v)
to no avail.
I...
2006 Nov 06
0
rJava: java.lang.OutOfMemoryError
Hy,
In my case I just invoked as root (on a linux box) the command R CMD
javareconf and checked if my system and root vm did match the version of
the user vm. After this the
command .jinit(parameters=c("-Xmx512m","-Xmx128m")) could be executed
without errors. I got this information from
http://www.rosuda.org/JGR/down.shtml
--
Hi,
Has anybody encountered the following problem?
TIA, Gregoire
> library(rJava)
> .jinit()
Error occurred during initialization...
2011 Jan 08
1
Error on loading libraries -
...uters, but at the moment, the
only computer
is this one that I'm finding error on.
So here is the problem:
I install library "Snowball" for example.
When I call library(Snowball) I get next error:
Error : .onLoad failed in loadNamespace() for 'Snowball', details:
call: .jinit()
error: unable to find the basic String class
Error: package/namespace load failed for 'Snowball
I tried to serach around for any issues but no luck, please help and thanks
for answers
--
View this message in context: http://r.789695.n4.nabble.com/Error-on-loading-libraries-tp3205351p32053...
2009 Jan 10
1
Help needed for Loading "tm" package
...etting directory
> my.path <-'C:\\_work\\Daddy"s\\myProjects\\2009
defaultProject\\R\\textfile\\'
>
> # text miner pakacge
> library(tm)
Loading required package: Snowball
Loading required package: RWeka
---------------------------------------------------------
Error in .jinit(system.file("jar", c("weka.jar", "RWeka.jar"), package =
pkgname, :
Cannot create Java virtual machine (-1)
Error : .onLoad failed in 'loadNamespace' for 'RWeka'
Error: package 'RWeka' could not be loaded
> my.corpurs <-Corpus(DirSource...
2011 Apr 30
3
Copying to R a rectangular array from a Java class
...301,302,303,304 } };
public final static String retConStg() { return(conStg); }
public final static double retCon0dbl() { return(con0dbl); }
public final static double[] retCon1Arr() { return(con1Arr); }
public final static double[][] retCon2Arr() { return(con2Arr); }
}
library(rJava)
.jinit()
.jaddClassPath("C:/ad/j") # a directory on my disk
print(.jclassPath())
rJavaTst <- .jnew("RJavTest") # compilation of class code
connStg <- .jfield(rJavaTst,sig="S","conStg")
print(connStg)
connStgRet <- .jcall(rJavaTst,returnSig="S",&...
2012 Oct 19
2
Mac and Windows binaries of rJava broken for R-devel?
Hi,
Here is a problem we see with the Mac and Windows binaries of
rJava (0.9-3) currently available on CRAN for R-devel (i.e. under
bin/macosx/leopard/contrib/2.16/ and bin/windows/contrib/2.16/):
> library(rJava)
> .jinit("gaggle/inst/jars/gaggleRShell.jar")
Error in .Call("R_do_new_object", ClassDef, PACKAGE = "base") :
"R_do_new_object" not available for .Call() for package "base"
The same code works fine with R-devel on Linux and the same version
of rJava...
2010 Aug 03
1
xlsx package
...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 Class.getSimpleName method ID
Error: package 'xlsxjars' could not be loaded
The help page of the xlsx package has a note "NOTE: You may need to add to your
PATH variable the location of your JVM (e.g. C:/Program
Files/Java/jre6/bin/client) to get rJava wor...