I've searched for this issue and the previous answers have left me lacking.
Today I tried to log into TWS via IB using a connection that I've been using without issue since 9/15/16. I got the following message:
Login failed: Can't find Java executable at 'C:\Windows\system32\javaw.exe' Unable to start TWS.
I've tried a few things thus far:
- Uninstalling TWS, then installing the latest build (952.3b, Nov 15 2016). Shows Java v. 1.8.0_60).
- Uninstalling Java and downloading the latest (8.111)
- Moving Javaw.exe to the specified folder (it's in Program Files(x86)), as well as SysWOW64
When I moved javaw.exe to the system32 and the SysWOW64 folders folder, I got a new message:
login failed IB adapter startTws: can't find registry key 'Trader Workstation'
I want to also note that I tried going back to an older "supported" version of TWS - build 944.3, April 1 2014. Same error message. I went a step further and updated the target on Trader Workstation 4.0 to "C:\Program Files (x86)\Java\jre1.8.0_111\bin\javaw.exe" from what it originally was. No avail there either.
At some point I thought I had gotten somewhere with TWS 944.3, using the default target and having moved javaw.exe to the system32 and SysWOW64 folders. When selecting my connection from NT, it would launch TWS (even if TWS was already running). I would enter my login info, and TWS would start. However, NT would never actually connect - the "connecting" box would remain open (not turn green); after about 10 seconds TWS would shut down and the process would loop again.
I'm at a total loss here. My automated trading runs 24-7 and I'd like to be able to run it tonight.
Please help!
Comment