[R-SIG-Finance] RBloomberg (java version) error

Ana Nelson nelson.ana at gmail.com
Fri Jul 23 12:50:11 CEST 2010


I would hope to someday support the C interface but it's not going to
happen any time soon unfortunately.

Would it be possible to set up a virtual machine running a newer
version of Java perhaps?

According to rJava, Java 1.4 or greater is required. What Java version
do you have at work? I'm not sure what the Bloomberg requirement is.



On Fri, Jul 23, 2010 at 10:50 AM, Ignacio Ramos Alvarez
<i.ramos.alvarez at gmail.com> wrote:
> Hello all.
> Just to update my problem, I have tried RBloomberg on a PC at home and
> works perfectly. I am Java ignorant but I suspect it probably has
> something to do with the rJava package or the Java in my machine at
> work, we have to run a specific older version of java (2005) for
> several reasons.
> Ana, I don't know if you've been looking into this, in any case thanks
> for the package. Are you planning to use the C API interface in future
> versions?.
> I guess I'll keep on downloading Bloomberg data with Excel or VB.
> Have a great day.
>
> Nacho.
>
> 2010/7/19 Ignacio Ramos Alvarez <i.ramos.alvarez at gmail.com>
>>
>> Hi Ana, thanks for your reply.
>>
>> 1)
>> > cn <- blpConnect()
>> R version 2.11.1 (2010-05-31)
>> rJava Version 0.8-4
>> RBloomberg Version 0.4-142
>> Java environment initialized successfully.
>> Looking for most recent blpapi3.jar file...
>> Error in blpConnect.Java("warning", NULL, TRUE, NULL) :
>>   Can't find C:\blp\API\APIv3\JavaAPI please confirm you have Bloomberg Version 3 Java API installed. If it's in a different location, please report this to RBloomberg package maintainer.
>> > cn <- blpConnect(blpapi.jar.file="c:\\Program Files\\blp\\API\\blpapi3.jar")
>> R version 2.11.1 (2010-05-31)
>> rJava Version 0.8-4
>> RBloomberg Version 0.4-142
>> Java environment initialized successfully.
>> Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
>>   java.lang.NoClassDefFoundError: org/findata/blpwrapper/Connection
>>
>> 2) The file exists in the path I use in blpConnect (C:\Program Files\blp\API)
>> 3) As in UPGR <GO> everything seems to be up to date:
>>
>> Software Component    Current Version    Rated Version    Status
>> Bloomberg Application    07/07/10    07/07/10    Up To Date
>> BBComm    07/07/10    07/07/10    Up To Date
>> DDE Server    12/07/08         Up To Date
>> Excel Add-In    07/08/10    07/08/10    Up To Date
>> API Data Dictionary    07/09/10    06/16/10    No Rollback Allowed
>> Bloomberg Browser    02/21/08    02/21/08    Up To Date
>> Keyboard Driver    06/15/09    06/15/09    Up To Date
>> .NET Framework v2.0    05/02/07    05/02/07    Up To Date
>> Txt-to-Speech Male    09/10/04    09/10/04    Up To Date
>> Txt-to-Speech Female    12/11/03    12/11/03    Up To Date
>> Smart Client    03/08/07         Up To Date
>> .Net Framework    06/11/10    06/11/10    Up To Date
>> .....
>>
>> I'm still thinking it is an Rjava problem but got no idea how to get around with it. Maybe it is a lack of permissions under my machine at work.
>> Any clues?
>>
>> Thanks very much.
>>
>> Nacho.
>>
>>
>> 2010/7/17 Ana Nelson <nelson.ana at gmail.com>
>>>
>>> Hi, Nacho,
>>>
>>> Please try the following and let me know how they work.
>>>
>>> 1) Connect just as
>>>
>>> cn <- blpConnect()
>>>
>>> 2) Do you have a file called blpapi3.jar in C:\Program Files\blp\API
>>> or its subdirectories? If so what is the exact path to this file.
>>>
>>> 3) Can you upgrade to the most recent version of the Bloomberg API
>>> (probably need to ask your IT department if you don't have admin
>>> rights)
>>>
>>>
>>>
>>> On Thu, Jul 15, 2010 at 3:06 PM, Ignacio Ramos Alvarez
>>> <i.ramos.alvarez at gmail.com> wrote:
>>> > Hi there.
>>> > I am getting an error when trying to establish a connection to Bloomberg
>>> > with the RBloomberg library (java version, RDCOMclient version is hopeless
>>> > for me as I don't have administrative rights on my XP machine).
>>> > This is my code:
>>> >
>>> > library(RBloomberg)
>>> >
>>> > # blpapi3.jar file not in default directory
>>> > cn <- blpConnect(blpapi.jar.file="c:\\Program Files\\blp\\API\\blpapi3.jar")
>>> >
>>> > the response:
>>> >
>>> > R version 2.11.1 (2010-05-31)
>>> > rJava Version 0.8-4
>>> > RBloomberg Version 0.4-142
>>> > Java environment initialized successfully.
>>> > Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
>>> >  java.lang.NoClassDefFoundError: org/findata/blpwrapper/Connection
>>> >
>>> > I am a complete java ignorant, but I got to find that it seems like the
>>> > .jaddClassPath() funtion is not working properly, extracted and modified
>>> > from blpConnect.Java:
>>> >
>>> >> .jclassPath()
>>> > [1] "C:\\PROGRA~1\\R\\R-211~1.1\\library\\rJava\\java"
>>> >> .jaddClassPath("c:\\Program Files\\blp\\API")
>>> >> .jclassPath()
>>> > [1] "C:\\PROGRA~1\\R\\R-211~1.1\\library\\rJava\\java"
>>> >> blpwrapper.jar.file
>>> > [1] "C:/PROGRA~1/R/R-211~1.1/library/RBloomberg/java/blpwrapper.jar"
>>> >> .jaddClassPath(blpwrapper.jar.file)
>>> >> .jclassPath()
>>> > [1] "C:\\PROGRA~1\\R\\R-211~1.1\\library\\rJava\\java"
>>> >> blpapi.jar.file
>>> > [1] "c:\\Program Files\\blp\\API\\blpapi3.jar"
>>> >> .jaddClassPath(blpapi.jar.file)
>>> >> .jclassPath()
>>> > [1] "C:\\PROGRA~1\\R\\R-211~1.1\\library\\rJava\\java"
>>> >
>>> > I also enclose this code:
>>> >
>>> >> sessionInfo()
>>> > R version 2.11.1 (2010-05-31)
>>> > i386-pc-mingw32
>>> >
>>> > 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-142 rJava_0.8-4        svIDE_0.9-49
>>> >
>>> > loaded via a namespace (and not attached):
>>> > [1] svMisc_0.9-57 tcltk_2.11.1  tools_2.11.1  XML_3.1-0
>>> >
>>> >
>>> > Any clue of what could be happening?.
>>> > Thanks very much in advance.
>>> >
>>> > Nacho.
>>> >
>>> >        [[alternative HTML version deleted]]
>>> >
>>> > _______________________________________________
>>> > R-SIG-Finance at stat.math.ethz.ch 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.
>>> >
>>
>>
>>
>> --
>> Ignacio Ramos Álvarez
>> i.ramos.alvarez at gmail.com
>
>
>
> --
> Ignacio Ramos Álvarez
> i.ramos.alvarez at gmail.com
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch 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