¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Java 18 present but TWS installer script still downloads Java 1.8


 

I already have JDK 18 installed:
java -version
openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing

But running the TWS installer script doesn't use it and downloads 1.7 version. Why?

./tws-latest-linux-x64.sh?
No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2023-09-03 16:15:41--? https://download2.interactivebrokers.com/installers/jres/linux-amd64-1.8.0_202.tar.gz


 

if you check ~/Jts/tws, especially the test_jvm() function, you'll see that the java version is hardcoded there. i guess they only test tws against this version and hence they require exactly this version.


 

TWS is a Java application but, more importantly, it heavily depends on JavaFX, which is not part of the JDK any longer since Java 11.

JavaFX went through major changes and I suggest you simply let TWS use its own JVM with compatible JavxFX and JxBrowser. And Java 8 is designated a Long Term Support version with extended support until 2030.

´³¨¹°ù²µ±ð²Ô


On Sun, Sep 3, 2023 at 06:27 AM, <kannan.jayaprakasam@...> wrote:
I already have JDK 18 installed:
java -version
openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing

But running the TWS installer script doesn't use it and downloads 1.7 version. Why?

./tws-latest-linux-x64.sh?
No suitable Java Virtual Machine could be found on your system.
Downloading JRE with wget ...
--2023-09-03 16:15:41--? https://download2.interactivebrokers.com/installers/jres/linux-amd64-1.8.0_202.tar.gz


 

Java 8 is still very widely used.?