[R] rJava .jinit() : Cannot create Java virtual machine (-1)

Romain Francois romain.francois at dbmail.com
Thu Sep 17 09:27:13 CEST 2009


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 rJava goes in this mailing list :
http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel

Romain

> I set the classpath variable to jre and to the jdk but nothing works.
>  > Sys.getenv("CLASSPATH")
> CLASSPATH
> "C:\\Programme\\Java\\jre6\\bin"
>  > Sys.getenv("CLASSPATH")
> CLASSPATH
> "C:\\Programme\\Java\\jdk1.6.0_13"
>
> Java is correct installed because other Java-Applications are running.
>
> I would be nice if someone could help me.
>
> Thanks !



-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/yw8E : New R package : sos
|- http://tr.im/y8y0 : search the graph gallery from R
`- http://tr.im/y8wY : new R package : ant




More information about the R-help mailing list