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.