TWS Java version

Discussion in 'Interactive Brokers' started by graz, Mar 10, 2021.

  1. graz

    graz

    Quick question. I've been running TWS for a few years. Does the Java install fresh with each install and update of TWS? Lately, I've been installing the stand alone TWS and the Java version after a year is still 1.8.0_152. Is that the latest that's installed on yours as well? Is there any way to update the Java version or is it simply fixed with the TWS installed? Thanks.

    I had no other prior installs of a stand alone Java installed on my system. The only Java I have is the one installed with TWS. Thanks.
     
  2. dholliday

    dholliday

    TWS installs its own version of Java
     
  3. graz

    graz

    Thanks. So everyone with a recent version of TWS is using Java 1.8.0_152?

    EDIT: No. It can't be. That Java version was installed in April 2020 when I installed TWS fresh on a new PC. In Program Files / Common Files, I see the folder: 1.8.0_152-tzdata2019c

    Any way to update the Java? Maybe I need to fully uninstall TWS?
     
    Last edited: Mar 10, 2021
  4. guru

    guru

    I use TWS but don't have any Java on my PC. Verified this via multiple tools, command prompt, and java uninstaller also shows that I don't have Java installed. So I don't use any Java, and don't know which version TWS uses internally.
     
  5. graz

    graz

    Thx. In TWS, go to the Help Menu and down to the bottom- About Trader Workstation. The version is in there.
    I don't use stand alone Java either and TWS has never updated the orig Java version it installed even though I installed/updated TWS many times since the first TWS.

    Yeah. Even though I have various versions of TWS installed in respective folders in C:\Jts, in order to update the Java, I think I need to uninstall all TWS versions and then dump the C:\Program Files\Common Files\i4j_jres folder. Then install TWS fresh again.
     
    Last edited: Mar 10, 2021
  6. graz

    graz

    I completely uninstalled and reinstalled TWS, dumped the Jts directory, and removed the Java files in C:\Program Files\Common Files\i4j_jres. Reinstalled offline version 981.2t and it installed the same Java version 1.8.0_152.

    So I guess IB hasn't updated the Java inside of the TWS in a while.
     
  7. If you want to develop your own Java software using a different Java version that is possible by installing the desired Java version on your computer. But TWS will continue to use the Java version which it installed by itself.
     
  8. graz

    graz

    Thank you. Originally, I thought maybe a recent version of Java was normally downloaded and installed during the TWS installation, but that's not true.

    No biggie. I keep a log of my TWS updates and offline TWS installs and noticed the Java version has not changed in a year. Thanks again.