Interactive Brokers TWS不是在Ubuntu下用OpenJDK开始的

时间:2012-09-21 07:06:59

标签: interactive ubuntu-12.04 broker

在Ubuntu 12.04下启动IBs TWS时出错。我抬头看着stdout,发现了以下日志消息。我检查了locales和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)

2 个答案:

答案 0 :(得分:0)

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

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

到目前为止还没有理解这个原因。我还尝试删除所有TWS设置,但这不起作用。引用的tws.xml(在某些论坛中也未找到)。

答案 1 :(得分:0)

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