开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Which Java version to use?


 

What kind of issues do you experience, JG?

TWS and IBGW bring their own customized Oracle Java 8 VM with JavaFX and my strong suggestion is that you don't change that and let TWS/IBGW use their embedded JVM.

The appropriate Java VM for your own software and the TWS API jar depends on what requirements the frameworks and libraries have that your software depends. It would make sense to standardize on one Java version for your entire workflow from IDE, through testing, and deployment.

For us that is currently Java 9 (though we are evaluating a migration to Java 11 or 17) and we have rock stable results running identical jars on OpenJDK 9 for Windows and Linux. Running our Java 9 jars on OpenJDK 11 works fine without any problems, too.

For better version control, compatibility, and debugging we build our own TWS API jar from the Java source code provided by IBKR. The IBKR jar that comes with API distributions is compiled with Java 8 and has version 52 class files.

闯ü谤驳别苍

Join [email protected] to automatically receive all group messages.