Quote from rc5781:
Is this code run from within tws or windows cmd?
I copied the server folder where you said to and ran the code from cmd but got an error....
RC, I am not sure about all the various flags in kiwi_trader's command but I was able to launch TWS using it. However, I've to wait until Monday to see its proper working and performance. This is what I did to make is work.
Assuming your TWS directory is C:\jts:
1) make sure java JDK is installed on your PC. To see that, ckeck "C:\Program Files\Java" and see if there is a jdk directory (this is different from jre directory). The jdk version may be different. Mine is jdk1.6.0_07. If jdk not installed go to http://java.sun.com/javase/downloads/ , download and install the latest version of JDK (currently JDK 6 Update 7)
2) open a DOS cmd prompt and run:
> cd C:\jts
> "C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe" -cp jts.jar;pluginsupport.jar;jcommon-1.0.0.jar;jfreechart-1.0.0.jar;jhall.jar;other.jar;riskfeed.jar;rss.jar -Dsun.java2d.noddraw=false -server -Xss128k -Xms256m -Xmx256m -XX:NewRatio=3 -XX:+ForceTimeHighResolution -XX:CompileThreshold=50 -XX:ThreadStackSize=192 -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+RelaxAccessControlCheck -XX:MaxInlineSize=8192 -XX:-DontCompileHugeMethods -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+ExplicitGCInvokesConcurrent -Xnoclassgc jclient/LoginFrame C:\JTS
***Make sure you use the exact *.jar file name as it apears in your C:\jts specially for jcommon-1.0.0.jar and jfreechart-1.0.0.jar. You may have a different versions of these files. Correct the above command with the exact names as appears in your C:\jts.
This should launch TWS login prompt for you. If things worked you can create a empty "twslaunch.bat" file and put the above two command lines in it to launch the TWS.
I hope this helps.
P.S., Kiwi_trader, please correct me if I did something wrong here!