¿ªÔÆÌåÓý

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

Re: Download page for IB Gateway...


Ben Alex
 

I'm on Linux so I can't be sure what the OSX installer does. However I assume they're similar. The following was tested with TWS release 954.2a.

On Linux the Install4J-based installer mainly installs TWS into $HOME/Jts/954). In there is a .desktop file which runs $HOME/Jts/954/tws, the latter of which is a lengthy shell script that runs Java and specifies jclient.LoginFrame as the main method. What you need is to use ibgateway.GWClient as the main method.

So if OSX is similar, what I'd do is copy the file to a new file (the paths may differ on your machine, depending on where Install4J wrote the files):

cp $HOME/Jts/954/tws $HOME/Jts/954/ibgw

Then change the main method from "jclient.LoginFrame" to "ibgateway.GWClient" (any text editor can do this, but here's the sed command for clarity):

sed -i $HOME/Jts/954/ibgw 's/jclient\.LoginFrame/ibgateway\.GWClient/' ibgw

Then give it a try to see if it worked:

$HOME/Jts/954/ibgw

The above launched IB Gateway just fine for me.

Maybe OSX gives you an IB Gateway launcher and you can save yourself the inconvenience of this. However the Linux Install4J only created TWS launchers.

The other option is to use IBController, which specialises in loading IB Gateway (or TWS) and dealing with its assorted authentication needs, popups and similar.


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