An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120709/0e56eacf/attachment.pl>
Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
7 messages · John Laing, Alexander Erbse
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.
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.
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.
32-Bit both.
-----Urspr?ngliche Nachricht-----
Von: John Laing [mailto:john.laing at gmail.com]
Gesendet: Montag, 9. Juli 2012 14:39
An: Alexander Erbse
Cc: r-help at r-project.org
Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
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.
Hi John,
I did some further checks and noticed that the java version, which is indicated by the settings (I used the code you sent) is version 1.5.0_12, although I installed version 1.7.0_05 shortly. The paths as shown by parameter "java.endorsed.dirs" are wrong. They are pointing to an older version of java on my machine. Do you know how I can rJava have referring to the correct directories, where I have the newer version of java?. (C:\Program Files\Java\jre7\lib..)
I guess that would likely solve the problem.
Thanks,
Alex
-----Urspr?ngliche Nachricht-----
Von: John Laing [mailto:john.laing at gmail.com]
Gesendet: Montag, 9. Juli 2012 14:39
An: Alexander Erbse
Cc: r-help at r-project.org
Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
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.
John,
the problem is now resolved. I changed the "PATH" environment variable. I replaced the path leading to the old java installation by the new one and now it works.
Thanks for your help.
Regards,
Alex
-----Urspr?ngliche Nachricht-----
Von: Alexander Erbse
Gesendet: Montag, 9. Juli 2012 17:05
An: 'John Laing'
Cc: r-help at r-project.org
Betreff: AW: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
Hi John,
I did some further checks and noticed that the java version, which is indicated by the settings (I used the code you sent) is version 1.5.0_12, although I installed version 1.7.0_05 shortly. The paths as shown by parameter "java.endorsed.dirs" are wrong. They are pointing to an older version of java on my machine. Do you know how I can rJava have referring to the correct directories, where I have the newer version of java?. (C:\Program Files\Java\jre7\lib..)
I guess that would likely solve the problem.
Thanks,
Alex
-----Urspr?ngliche Nachricht-----
Von: John Laing [mailto:john.laing at gmail.com]
Gesendet: Montag, 9. Juli 2012 14:39
An: Alexander Erbse
Cc: r-help at r-project.org
Betreff: Re: [R] Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
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.