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

Ana Nelson nelson.ana at gmail.com
Sat Jul 17 23:09:46 CEST 2010


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.
>



More information about the R-SIG-Finance mailing list