[R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()

John Laing john.laing at gmail.com
Mon Jul 9 14:38:36 CEST 2012


OK. Are you running 32 bit or 64 bit R? And 32 bit or 64 bit Java?

This can help shed light on the settings for the JVM being accessed by R:
require(rJava)
.jinit()
jvm <- .jnew("java.lang.System")
jvm.props <- jvm$getProperties()$toString()
jvm.props <- strsplit(gsub("\\{(.*)}", "\\1", jvm.props), ", ")[[1]]


-John

On Mon, Jul 9, 2012 at 8:23 AM, Alexander Erbse <ae at alpha-centauri.com> wrote:
> John,
>
> thanks for your quick response. Here is what you requested:
>
> java version "1.7.0_05"
> Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
> Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
>
> Thanks,
> Alex
>
> -----Ursprüngliche Nachricht-----
> Von: John Laing [mailto:john.laing at gmail.com]
> Gesendet: Montag, 9. Juli 2012 13:14
> An: Alexander Erbse
> Cc: r-help at r-project.org
> Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
>
> Alexander,
>
> I agree, this feels like a java version issue. You could start by telling us what version of Java you're running: open a command prompt and type java -verision, and reply with the output. I think any version 1.5 and up should work, but let's see what you have.
>
> -John
>
> On Mon, Jul 9, 2012 at 4:20 AM, Alexander Erbse <ae at alpha-centauri.com> wrote:
>> Dear All,
>>
>>
>>
>> when I try to call blpConnect() in order to open a connection to the
>> Bloomberg on my machine, I receive following error message:
>>
>>
>>
>>
>>
>> R version 2.15.1 (2012-06-22)
>>
>> rJava Version 0.9-3
>>
>> RBloomberg Version 0.4-150
>>
>> Java environment initialized successfully.
>>
>> Looking for most recent blpapi3.jar file...
>>
>> Adding C:\blp\API\APIv3\JavaAPI\v3.4.8.1\lib\blpapi3.jar to Java
>> classpath
>>
>> Fehler in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
>>
>>   java.lang.UnsupportedClassVersionError: Bad version number in .class
>> file
>>
>>
>>
>>
>>
>>
>>
>> It looks there is any problem with the installed java version. Has
>> anyone an idea how to solve that problem?
>>
>>
>>
>> Regards,
>>
>>
>>
>> Alexander Erbse
>>
>>
>>
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
>



More information about the R-help mailing list