|
I recently installed RBloomberg, the Bloomberg APIv3 and rJava. I tried to execute blpConnect but received the following error. My windows machine has Java 1.5 installed, which to my knowledge appears to be acceptable for RBloomberg/rJava.
Please see further details below. I greatly appreciate your help. RBloomberg Version 0.4-150 Java environment initialized successfully. Looking for most recent blpapi3.jar file... Adding C:\blp\API\APIv3\JavaAPI\v3.4.5.5\lib\blpapi3.jar to Java classpath Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) : java.lang.UnsupportedClassVersionError: Bad version number in .class file > sessionInfo() R version 2.14.0 (2011-10-31) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] RBloomberg_0.4-150 rJava_0.9-3 loaded via a namespace (and not attached): [1] tools_2.14.0 |
|
This post was updated on .
I upgraded the java version to 1.6 just in case.... here is the output of 'java -version':
C:\Documents and Settings\Administrator>java -version java version "1.6.0_30" Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) The Bloomberg API v3 works fine in that I can launch the BBAPIDemo app and download historical data etc.... I'm not sure if I need a full JDK installation or if whether the JRE alone is sufficient (I have only installed the JRE). So something is else is going on. Appreciate the help. |
|
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. |
|
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 <[hidden email]> 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. > > _______________________________________________ > [hidden email] 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. _______________________________________________ [hidden email] 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. |
| Powered by Nabble | Edit this page |
