0

在 Ubuntu 12.04 下启动 IBs TWS 时出错。我查看了标准输出,发现了以下日志消息。我检查了语言环境和 tz 设置,但无法解决。

22:22:47:443 AWT-EventQueue-0: ERROR - No time zones could be retrieved from the OS
java.lang.Exception
    at twslaunch.jutils.fc.b(fc.java:354)
    at twslaunch.jutils.fc.s(fc.java:344)
    at twslaunch.jutils.gb.a(gb.java:147)
    at twslaunch.jutils.gb.f(gb.java:308)
    at feature.date.fc.<init>(fc.java:190)
    at feature.date.gc.<init>(gc.java:142)
    at feature.date.dc.<init>(dc.java:141)
    at feature.date.dc.<init>(dc.java:128)
    at feature.date.dc.<init>(dc.java:116)
    at jtscomponents.pq.<init>(pq.java:341)
    at jtscomponents.JTSDateCellEditor.newDateTimeEditorInstance(JTSDateCellEditor.java:340)
    at jcolumn.fc.run(fc.java:51)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:682)
    at java.awt.EventQueue$3.run(EventQueue.java:680)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
    at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at twslaunch.jtscomponents.j.a(j.java:74)
    at twslaunch.feature.welcome.j.h(j.java:425)
    at twslaunch.feature.welcome.j.a(j.java:408)
    at jclient.pl.<init>(pl.java:2628)
    at jconnection.b.h(b.java:181)
    at jconnection.b.e(b.java:56)
    at jconnection.a.b(a.java:199)
    at jconnection.rb.run(rb.java:158)
    at twslaunch.jutils.ec.a(ec.java:483)
    at jconnection.b.a(b.java:156)
    at jconnection.b.c(b.java:140)
    at jconnection.b.a(b.java:56)
    at jconnection.qb.run(qb.java:101)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
4

2 回答 2

0

解决方案是重新安装OpenJDK并清除当前 java 安装的所有文件。我只是偶然发现了这个。所以希望这有助于其他人节省一些时间。

sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
sudo aptitude install openjdk-7-jdk

原因至今不明白。我也尝试删除所有 TWS 设置,但没有奏效。引用的 tws.xml(在某些论坛中也找不到)。

于 2012-09-21T07:06:58.763 回答
0

我知道这是一个非常古老的问题,但由于它并不为人所知(足够),我想补充一点,IB/TWS 不支持 OpenJDK。您必须使用 Oracle JDK。

于 2014-09-16T14:41:48.193 回答