You are not logged in.

#1 2009-02-19 23:33:01

stringchopper
Member
Registered: 2009-02-19
Posts: 38

thinkorswim desktop

Hello all,
2nd day on Arch, and have to say, it is really nice. kudos to Arch team.  I *especially*like the clear documentation on the wiki pages.

I have tried a few distros and always have problems with the thinkorswim desktop software.  It seems to run fine after installing with the script, but there is always a message about it being designed or built on java 1.5.0, and I'm always using 1.6.0

Is there a way to use both on the same system, ie, to force one package to use an earlier version?

https://www.thinkorswim.com/tos/client/index.jsp

Thanks,
Brian

Edit:  I just found these instructions on their download site... but can't make much sense of it..
For Unix or Unix-like operating systems:

   1. For Java 2, after downloading, type java -jar launcher.jar
   2. For Java 1.1, after downloading, type jre -cp launcher.jar install
   3. If that does not work, try java -classpath [path to] classes.zip:launcher.jar install
   4. If that does not work either, on sh-like shells, try
      cd [to directory where launcher.jar is located]
      CLASSPATH=launcher.jar
      export CLASSPATH
      java install
   5. Or for csh-like shells, try
      cd [to directory where launcher.jar is located]
      setenv CLASSPATH launcher.jar
      java install

Instructions (for other platforms)

   1. Be sure you have Java 1.1.8 or later installed. You can download Java from Sun's site
   2. In a console window, change to the directory where you downloaded launcher.jar to before running the installer.
   3. Your operating system may invoke Java in a different way. To start the installer, add launcher.jar to your CLASSPATH, then start the main class of the installer named install


NOTE: this is the output of "java -version" on my system

java version "1.6.0_0"
IcedTea6 1.4 (ArchLinux-1.4-2-i686) Runtime Environment (build 1.6.0_0-b14)
OpenJDK Server VM (build 14.0-b08, mixed mode)

Last edited by stringchopper (2009-02-19 23:40:58)


Regards,
Brian

Offline

#2 2009-02-20 00:37:04

cjpembo
Member
Registered: 2008-08-06
Posts: 105

Re: thinkorswim desktop

Hello fellow thinkorswim desktop user!

Don't worry about that warning; the thinkorswim application is just as unstable under 1.5 as it is under 1.6_12!

All kidding aside, the TOS application works better with sun's jre 1.6_12 then any other java I've tried.

If you'd like to share experiences with TOS in linux, contact me off list:

cjpembo@gmail.com

If not, here is my recommendation after trying TOS for the past 2 months on several linux distros:

Use virtual box to emulate WinXP, and run TOS from XP.  It works better.  Unless you like random lockups when making transactions with your money!

Chris

Offline

#3 2009-02-20 13:55:27

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

Thanks Chris.  I'll send you a quick email, so you have mine, but I'm just a casual user of TOS.  I only paper trade in it currently.

I haven't experienced any issues with other distros when making paper trades, other than that time last October when I hit Enter and the Dow Jones plunged.  smile   The only issue I get is the warning up front, which has made me wonder about the stability and timing of trades, were I to use it with real money.

I'm seriously trying to get away from windows, and though I have a legitimate copy of XP, I don't want to go through all the hassle for just that one program - so that would be a last resort for me.

I haven't tried to install TOS on Arch linux yet, but I'm also wondering about issues I may have with Open Java.  I wanted to install sun's JRE for openoffice and netbeans, but got complaints from pacman.  A little search on the forums showed the people were having problems in KDE4 with Konqueror (and possibly other programs) when they switched to sun's version.  I'm not sure why it has to be "one or the other" we use - would be nice to have a choice with certain programs.

Brian


Regards,
Brian

Offline

#4 2009-02-20 21:54:34

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

well, I followed advice on another thread for removing open java and replacing with sun's

I can't install thinkorswim (TOS).  Never had a problem on other distro's, but this is the first time I've used KDE. 

I keep getting this error when running their shell script:

bash-3.2# sh thinkorswim_installer.sh
Starting Installer ...
No protocol specified
Could not display the GUI. This application needs access to an X Server.
If you have access there is probably an X library missing.
*******************************************************************
You can also run this application in console mode without
access to an X server by passing the argument -c
*******************************************************************
An error occurred:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
Error log: /tmp/install4jError241630386995519668.log

I wonder if this has anything to do with the fact that KDM is my display manager???

Here's the contents of the error log mentioned above:

Exception:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at java.awt.Toolkit$2.run(Toolkit.java:834)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
    at javax.swing.ImageIcon.<init>(ImageIcon.java:148)
    at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
    at com.install4j.runtime.installer.frontend.GUIHelper.loadIcon(Unknown Source)
    at com.install4j.runtime.installer.frontend.GUIHelper.<clinit>(Unknown Source)
    at com.install4j.runtime.installer.frontend.InstallerWizardScreenExecutor.<clinit>(Unknown Source)
    at com.install4j.runtime.installer.Installer.getScreenExecutor(Unknown Source)
    at com.install4j.runtime.installer.Installer.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.install4j.runtime.Launcher.main(Unknown Source)

System properties:

java.runtime.name=Java(TM) SE Runtime Environment
exe4j.moduleName=/home/brian/Downloads/thinkorswim/thinkorswim_installer.sh
sun.boot.library.path=/opt/java/jre/lib/i386
java.vm.version=11.0-b16
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=:
java.vm.name=Java HotSpot(TM) Server VM
file.encoding.pkg=sun.io
sun.java.launcher=SUN_STANDARD
user.country=US
sun.os.patch.level=unknown
install4j.exeDir=/home/brian/Downloads/thinkorswim/
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/home/brian/Downloads/thinkorswim/thinkorswim_installer.sh.3117.dir
java.runtime.version=1.6.0_11-b03
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/opt/java/jre/lib/endorsed
os.arch=i386
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Sun Microsystems Inc.
os.name=Linux
exe4j.totalDataLength=756744
sun.java2d.noddraw=true
sun.jnu.encoding=UTF-8
java.library.path=/opt/java/jre/lib/i386/server:/opt/java/jre/lib/i386:/opt/java/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot Tiered Compilers
os.version=2.6.28-ARCH
user.home=/root
user.timezone=America/Indiana/Indianapolis
java.awt.printerjob=sun.print.PSPrinterJob
install4j.jvmDir=/opt/java
file.encoding=UTF-8
java.specification.version=1.6
java.class.path=i4jruntime.jar:user.jar
user.name=root
java.vm.specification.version=1.0
java.home=/opt/java/jre
sun.arch.data.model=32
user.language=en
java.specification.vendor=Sun Microsystems Inc.
java.vm.info=mixed mode
java.version=1.6.0_11
java.ext.dirs=/opt/java/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path=/opt/java/jre/lib/resources.jar:/opt/java/jre/lib/rt.jar:/opt/java/jre/lib/sunrsasign.jar:/opt/java/jre/lib/jsse.jar:/opt/java/jre/lib/jce.jar:/opt/java/jre/lib/charsets.jar:/opt/java/jre/classes
install4j.appDir=/home/brian/Downloads/thinkorswim/
java.vendor=Sun Microsystems Inc.
file.separator=/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.cpu.isalist=

Regards,
Brian

Offline

#5 2009-02-20 22:19:46

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

I noticed this also, if it helps anyone to help me.  I'm not sure what to make of it though.

bash-3.2# ps aux | grep -i X

root      2540  2.2  2.2  54784 45904 tty7     Ss+  17:03   0:18 /usr/bin/X -br -novtswitch -quiet -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-1SEus2

Regards,
Brian

Offline

#6 2009-02-20 23:15:11

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: thinkorswim desktop

Ok, i havent even tried this. but try to run
sed -i 's/:0.0/:0/g' thinkorswim_installer.sh

and then
./thinkorswim_installer.sh

you might have to do
chmod +x thinkorswim_installer.sh
first..

edit: uh, oh wait. try
DISPLAY=:0 ./thinkorswim_installer.sh
aswell/instead. probably instead..

Last edited by test1000 (2009-02-20 23:21:27)


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#7 2009-02-21 17:12:41

cjpembo
Member
Registered: 2008-08-06
Posts: 105

Re: thinkorswim desktop

I just tried installing the thinkorswim application on my up-to-date arch64 and it installed flawlessly.

Note: I install the thinkorseim application as a non-root user into my home directory.

I always install the Sun JDK by hand; just extract the files into the /opt directory.

Make a symlink /opt/java pointing to /opt/jdk1.6_12:

ln -s /opt/jdk1.6_12 /opt/java

Then put the following in your ~/.bashrc

export J2SDKDIR=/opt/java
export PATH=$PATH:/opt/java/bin
export JAVA_HOME=/opt/java

(The arch jdk package sets these three automatically and system-wide by placing them in /etc/profile.d/jdk.profile).

Therefore, in this example I have only set up the java environmental variables for myself; not system-wide.

Make sure you don't have any java related items in /etc/profile.d/ left over from openjdk or whatever.

Log out and back in and check the output of the following:

echo $J2SDKDIR
echo $PATH
echo $JAVA_HOME

The output needs to point to your installed java.  If so, Java is set up correctly.

As for your X11 related issues:  I use a simple minimal window manager (blackbox); so I'm not sure if KDE is an issue.

Perhaps something X11-related is missing.  If you run "pacman -S xorg", does it try to install anything more?

Googling:

"java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable"

brings up comments regarding "xhost".  I'm not sure what to do about that.

Offline

#8 2009-02-21 20:33:43

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

cjpembo: thanks for all the input, I have tried everything you suggested, and it looks like sun java is installed correctly, nothing from open java is hanging around, and I added "kdesu" to the command line, plus using the xhost + option.

I was able to get it installed. It checked for updates, installed an update, but then I can't sign on.  the log in screen just hangs after I fill in my user name and password.  I checked the "connect" option (from the "options" on the logon screen), it didn't have anything in it, but it does have a drop-down box with this option: "team.thinkorswim.com:7002,team.thinkorswim.com:443"

So I chose that option, still no luck.  My firewall is not blocking, and I've never had problems with other distro's (where I always used gnome).  One help file from thinkorswim suggested that the time on my system must be set correctly.  I do recall that when I installed arch linux / kde4, that the clock was 5 hours behind.  I had to manually set it in the System Settings/Date and Time appet.  Now, my BIOS clock is 5 hours AHEAD, so that my OS clock will be on the correct time.  Don't know that the BIOS clock would make a difference, but thought it worth mentioning.

syslog and xorg log show no changes when I try to connect and get the hanging start up box.


Regards,
Brian

Offline

#9 2009-02-23 00:23:51

cjpembo
Member
Registered: 2008-08-06
Posts: 105

Re: thinkorswim desktop

Look in /etc/rc.conf.  That is where you specify your system's hardware clock, timezone, etc.

In my case (Central Time zone of US)

...
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
...
TIMEZONE="US/Central"
...

I find it easiest to keep the bios clock set to localtime and use the timezone spec in /etc/rc.conf.

When you installed arch, did you remember the step where you set up the system's time and locale?

The first time I installed TOS it would hang on me as well.  I had installed the program as root into the /opt directory.  Later when I ran the program as a normal user, I didn't have write permission on the /opt directory: the program would hang.  Not sure if this could be related, but look to see if you have write permission to the install directory.  Most linux apps keep personal configuration items in the user's home directory.  TOS keeps the info in the install dir.

This is why I install TOS to my home directory, in /home/cjpembo/thinkorswim/.  Solved the problem for me.  If you log into X as root, will TOS run?

Offline

#10 2009-02-26 20:05:46

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

well, i have confirmed that this is not my network, as I have installed and run TOS sucessfully on a 2nd linux machine on the same network (ubuntu)

I tried installing gnome on my arch linux machine, still same thing: get to sign in screen, click OK, and the screen hangs when trying to connect - this is typically a sign that a firewall is blocking, but as the ubuntu install shows, nothing on my routers, ISP, etc is blocking. 

I did not install any firewall (that I recall) on the arch linux machine.

I have fouind this file in the thinkorswim directory:

client.log

    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.devexperts.jnlp.updater.ModuleManager$LaunchThread.run(ModuleManager.java:145)
26.02.09 14:37:08 ERROR system.err - java.lang.reflect.InvocationTargetException
26.02.09 14:37:08 ERROR system.err -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
26.02.09 14:37:08 ERROR system.err -     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
26.02.09 14:37:08 ERROR system.err -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
26.02.09 14:37:08 ERROR system.err -     at java.lang.reflect.Method.invoke(Method.java:597)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.jnlp.updater.ModuleManager$LaunchThread.run(ModuleManager.java:145)
26.02.09 14:37:08 ERROR system.err - Caused by: weblogic.utils.NestedError: Local host not known?!  - with nested exception:
26.02.09 14:37:08 ERROR system.err - [java.net.UnknownHostException: myarch: myarch]
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.JVMID.setLocalID(JVMID.java:68)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.JVMID.localID(JVMID.java:51)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.JVMMessage.createIdentifyMsg(JVMMessage.java:251)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:976)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:342)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:252)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:223)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:99)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:113)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:85)
26.02.09 14:37:08 ERROR system.err -     at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
26.02.09 14:37:08 ERROR system.err -     at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:196)
26.02.09 14:37:08 ERROR system.err -     at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:148)
26.02.09 14:37:08 ERROR system.err -     at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)
26.02.09 14:37:08 ERROR system.err -     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
26.02.09 14:37:08 ERROR system.err -     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
26.02.09 14:37:08 ERROR system.err -     at javax.naming.InitialContext.init(InitialContext.java:223)
26.02.09 14:37:08 ERROR system.err -     at javax.naming.InitialContext.<init>(InitialContext.java:197)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.tos.ui.net.Connection.getInitialContext(Connection.java:244)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.tos.ui.net.Connection.connect(Connection.java:158)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.tos.ui.net.Connection.connect(Connection.java:148)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.tos.ui.user.DesktopMain.<init>(DesktopMain.java:229)
26.02.09 14:37:08 ERROR system.err -     at com.devexperts.tos.ui.user.DesktopMain.main(DesktopMain.java:783)
26.02.09 14:37:08 ERROR system.err -     ... 5 more

It's all greek to me... java error creating virtual machine? dunno!


Regards,
Brian

Offline

#11 2009-02-27 15:22:38

stringchopper
Member
Registered: 2009-02-19
Posts: 38

Re: thinkorswim desktop

maybe I'm a little closer to solving this...  I saw this in the thinkorswim client.log, today

27.02.09 10:07:13  INFO user.DesktopMain - User 'stringchopper' is trying to connect to the server t3s://demo.thinkorswim.com:7002
27.02.09 10:07:14 ERROR system.err - java.net.UnknownHostException: mylaptop: mylaptop

I also noticed a similar warning when I installed mysql on an old laptop with arch linux.  The specific warning for mysql after installing and starting for the first time, was:

WARNING: The host 'oldhost' could not be looked up with resolveip.
This probably means that yhour libc librarires are not 100 % compatible
with this binary MySQL version.  The MySQL daemon, mysqld, should work normally with the
exception that the host name resolving will not work.
this means that you should use IP addresses instead of hostnames when specifying MySQL privileges!

So, I'm thinking that the java thinkorswim can't resolve 'mylaptop'.... it needs some way to know that the host mylaptop is my local machine *or* to resolve that to the external public IP provided by my ISP.  Or, perhaps there is a setting somewhere that I can set to make it use my external IP ???  Thought that would be messy, as the external IP changes often.


Regards,
Brian

Offline

#12 2019-12-16 01:41:23

jgbt
Member
Registered: 2019-12-13
Posts: 1

Re: thinkorswim desktop

Despite this thread being about a decade old now XD I thought I'd post my recent attempt to get TOS installed. It turned out to be mostly painless.

- install the jdk8 package from the aur: https://aur.archlinux.org/packages/jdk8/
- download the thinkorswim_installer.sh: https://mediaserver.thinkorswim.com/ins … stall.html
- chmod +x the install script
- run the script to get the installer going
- choose what type of account and where to install (I just did a subdir in my /home)

Note:

Oracle has stopped offering download links to the legacy jdk tarballs so you need to either "sign" their new licensing agreement and download from their site:

https://www.oracle.com/technetwork/java … 33151.html

Or you can get the tarballs hosted elsewhere:

https://www.adobe.com/support/coldfusion/downloads.html
https://github.com/frekele/oracle-java/releases

Once you have it put it either in your jdk8 PKGBUILD directory or in ~Downloads/ (for example if using an AUR helper) and then build the jdk8 package. See the comments about this in the AUR package thread.

Offline

#13 2019-12-16 09:49:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,120

Re: thinkorswim desktop

Thanks for sharing, however since a decade is indeed a long time, it's unsurprising things have developed to support newer Java versions, so this is unlikely to be generally helpful.

https://wiki.archlinux.org/index.php/Co … bumping%22

Closing this old thread.

Last edited by V1del (2019-12-16 09:50:39)

Offline

Board footer

Powered by FluxBB