java - 在 ubuntu 16.04 上安装 TWS

标签 java linux ubuntu interactive-brokers

大家好,我正在尝试安装 IB api 软件,但我遇到了一个问题,我不知道是什么!!

这里是安装过程:

面临的错误:

No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2017-11-11 13:26:12--  https://download2.interactivebrokers.com/installers/jres/linux-x64-1.8.0_152.tar.gz
Resolving download2.interactivebrokers.com (download2.interactivebrokers.com)... failed: No address associated with hostname.
wget: unable to resolve host address ‘download2.interactivebrokers.com’
Unpacking JRE ...

gzip: jre.tar.gz: unexpected end of file
tar: ../jre.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Starting Installer ...
./tws-latest-linux-x64.sh: 613: ./tws-latest-linux-x64.sh: /home/user1/Downloads/tws-latest-linux-x64.sh.8674.dir/jre/bin/java: not found

有什么帮助吗?

最佳答案

你在防火墙后面吗?设置你的代理

导出 https_proxy=proxy:port 导出 http_proxy=代理:端口

否则只需手动安装 jvm 即可满足该要求。

您也可以将代理添加到 wget 命令。

关于java - 在 ubuntu 16.04 上安装 TWS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47237436/

相关文章:

java - log4j 不创建日志文件

python - 如何安装pygame字体

ubuntu - kubectl - 访问 GKE 集群时收到 PROTOCOL ERROR

linux - 如何判断linux设备的事件?

java - 在单独的进程中打开 url

ubuntu - lein repl 中的 Control-d 行编辑?

bash - Ubuntu系统路径设置在哪个文件中?

java - 将 List.of 用于具有单个元素而不是 Collections.singletonList 的不可变列表

java - 在 Android Studio 中获取 json 数据的问题

java - Opengl ES 2.0 : Get texture size and other info