[R-SIG-Finance] RBloomberg, blpConnect, java.lang.UnsupportedClassVersionError

John Laing john.laing at gmail.com
Mon Dec 19 23:10:42 CET 2011


I think Java 1.6 should be good enough for RBloomberg, but not 1.5.
Possibly R is still using the older version?

You can try something like this:

require(rJava)
.jinit()
jvm <- .jnew("java.lang.System")
jvm.props <- jvm$getProperties()$toString()
jvm.props <- strsplit(gsub("\\{(.*)}", "\\1", jvm.props), ", ")[[1]]

The resulting vector might help highlight issues in your
configuration. Here are a few of the more relevant settings I see from
running the above:

 [2] "sun.boot.library.path=C:\\Java\\jdk1.7.0\\jre\\bin"
[14] "java.runtime.version=1.7.0-b147"
[16] "java.endorsed.dirs=C:\\Java\\jdk1.7.0\\jre\\lib\\endorsed"
[34] "java.specification.version=1.7"
[37] "java.vm.specification.version=1.7"
[38] "java.home=C:\\Java\\jdk1.7.0\\jre"

Hope that helps,
John

On Mon, Dec 19, 2011 at 11:56 AM, algotr8der <algotr8der at gmail.com> wrote:
> Here is the output of the path variables on my machine. Doesn't seem like the
> JAVA_HOME is set. Is this a requirement? Does the java folder also need to
> be in the PATH variable?
>
> C:\Documents and Settings\Administrator>echo %path%
>
> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\blp\API;C:\blp\API\dd
> e
>
> C:\Documents and Settings\Administrator>echo %java_path%
> %java_path%
>
> C:\Documents and Settings\Administrator>echo $JAVA_HOME
> $JAVA_HOME
>
> Anyone have any idea of how I can troubleshoot this going forward?
> Appreciate the help.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/RBloomberg-blpConnect-java-lang-UnsupportedClassVersionError-tp4208981p4214817.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list