Help req'd with Java trading software

I’m trying to get the Unix version (it’s actually just a java app) of Interactive Broker’s trading platform to run but am not getting anywhere. I’m not sure if it’s because I am running the openjdk java and not running the Oracle Java or if it’s something else. Any help would be appreciated.

For reference, the download and instructions are here.
The first instruction is to run

jar xf unixmacosx.jar 

but that just gives an error “If ‘jar’ is not a typo you can use command-not-found…”

Can anyone help?

Hi, normally java jar files are started with “java -jar whatever” so try with

 java -jar xf unixmacosx.jar 

. HTH Lenwolf

Thanks for the quick reply.

I just tried your suggestion and got the error

Unable to access jarfile xf

Ok, I tried that, but it doesn’t work. However, the initial command

 jar xf unixmacosx.jar 

does work here. What happens if you just type “jar”. Or even if you just type “java”. Is java installed at all? If I follow their instruction the software seem to run here (tested on OS 12.1 with both the Sun JDK 7 and the openJDK 7) but I didn’t go any further than the login screen each time. Lenwolf

OK, it seems that it’s a problem with my system if you can get it working.

If I type jar I get

If 'jar' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf jar

Typing java I get

Usage: java -options] class [args...] etc, etc

so it seems java is installed or at least part of it.

I have java-1_6_0-openjdk installed. I don’t see open jdk7 in the standard repos. Did you install that manually or find it in a repo?

Perhaps the jar command only works with the Sun jdk7.

Am 20.06.2012 10:06, schrieb suse tpx60s:
>
> OK, it seems that it’s a problem with my system if you can get it
> working.
>
> If I type jar I get
> Code:
> --------------------
> If ‘jar’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
> cnf jar
> --------------------
>
Install the package java-1_6_0-openjdk-devel with yast, then you have
the jar command.


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

OK, an update. I tried a different approach and just extracted the “unixmacosx.jar” file using Ark to the IBJts directory which I created manually. This created two directories within the IBJts directory, IBJts and META-INF. I then switched to the internal IBJts directory and tried running the command

java -cp jts.jar:hsqldb.jar:jcommon-1.0.12.jar:jfreechart-1.0.9.jar:jhall.jar:other.jar:rss.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame .

This produced some output in the konsole and then opened the trade platform login window. So it appears to work but I have a few errors and prohibited lookups in the output. Did you get any of these errors?

java -cp jts.jar:hsqldb.jar:jcommon-1.0.12.jar:jfreechart-1.0.9.jar:jhall.jar:other.jar:rss.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame .
09:20:35:219 main: Property locale_to_use=null
09:20:35:419 main: JTS Locale=en_US  country=United States  variant=
09:20:35:419 main: Locale=en_US  country=United States  variant=
09:20:35:432 main: Error no jar:/home/Gabs/IBJts/IBJts/c:\jts\/language.jar
09:20:35:434 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage]
09:20:36:484 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage_en]
09:20:36:484 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage_en_US]
09:20:36:484 main: prohibiting class lookup [ji18n.Language]
09:20:36:581 main: prohibiting class lookup [ji18n.Language_en]
09:20:36:581 main: prohibiting class lookup [ji18n.Language_en_US]
09:20:36:581 main: prohibiting resource lookup [ji18n/Language_en_US.properties]
09:20:36:581 main:   actual locale: 
09:20:36:773 JTS-Main: dayInit: new values: dayOfTheWeek: 4 (Wed), YYYYMMofToday: 201206, YYYYMMDDofToday: 20120620
09:20:36:893 JTS-Main: Error no jar:/home/Gabs/IBJts/IBJts/language.jar
09:20:38:381 JTS-Main: Build 925.6b, May 1, 2012 4:05:42 PM

It seems to be complaining about a missing language.jar file. Is this because I only extracted the unixmacos.jar file and not ‘install’ it using “jar xf unixmacos.jar”

Ah, thanks. That worked.

I still get the errors I mentioned above though.

Am 20.06.2012 10:36, schrieb suse tpx60s:
> It seems to be complaining about a missing language.jar file. Is this
> because I only extracted the unixmacos.jar file and not ‘install’ it
> using “jar xf unixmacos.jar”
>
Your workaround with ark is just fine, the jar xf does not do more than
simply extracting a simple .jar file and contains no installation step.
I can look into that this evening (german time, so in around 7 hours)
since I am at work now.
I will check what that is and give you feedback unless someone else
beats me and is faster.


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

Thanks. I’ll wait to see what you find.

[QUOTE=suse_tpx60s;2470236]. Did you get any of these errors?

java -cp jts.jar:hsqldb.jar:jcommon-1.0.12.jar:jfreechart-1.0.9.jar:jhall.jar:other.jar:rss.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame . 09:20:35:219 main: Property locale_to_use=null 09:20:35:419 main: JTS Locale=en_US  country=United States  variant= 09:20:35:419 main: Locale=en_US  country=United States  variant= 09:20:35:432 main: Error no jar:/home/Gabs/IBJts/IBJts/c:\jts\/language.jar 09:20:35:434 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage] 09:20:36:484 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage_en] 09:20:36:484 main: prohibiting class lookup [twslaunch.ji18n.LauncherLanguage_en_US] 09:20:36:484 main: prohibiting class lookup [ji18n.Language] 09:20:36:581 main: prohibiting class lookup [ji18n.Language_en] 09:20:36:581 main: prohibiting class lookup [ji18n.Language_en_US] 09:20:36:581 main: prohibiting resource lookup [ji18n/Language_en_US.properties] 09:20:36:581 main:   actual locale:  09:20:36:773 JTS-Main: dayInit: new values: dayOfTheWeek: 4 (Wed), YYYYMMofToday: 201206, YYYYMMDDofToday: 20120620 09:20:36:893 JTS-Main: Error no jar:/home/Gabs/IBJts/IBJts/language.jar 09:20:38:381 JTS-Main: Build 925.6b, May 1, 2012 4:05:42 PM 

Yes, I get all of them, so the “problem” (if it is any), isn’t related to the way you extracted the file, anyway, as Martin_Helm pointed out you did manually what “jar xf” does automatically. So there seems to be a language file missing. I wouldn’t worry about it. Did you try to log in? Oh, and my version is build “927.7 Jun 19, 2012 2:03:50 PM”. Perhaps you might want to get the latest version? HTH Lenwolf

The unix version of that software looks a bit half baked in that the
java program looks first for a windows path it cannot find to find the
language.jar file (I can only guess that this should contain some
translations if they would provide it) spits out an error message and
proceeds to look for it the in the IJBts path (where it is also not
available).

Nevertheless this only seems to have the effect that it falls back to
its default and runs in the en_US locale and has no other influence on
the functionality as far as I can see.
Since it seems not to be open source from what I find it is not possible
to look into it.

I have no account and do not plan to create one, so I have to ask if by
simply ignoring the somewhat misleading error message, did you succeed
in using it or are there further problems after login?


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

I don’t have an account with them yet so cannot progress beyond the login either.

I did however try their online demo which appears to be the same java app that downloads and launches. The demo starts, logs in automatically and displays the various trading windows but then locks up for me with my processor locked at 55% forcing me to have to kill the java process. I don’t know if this is because I’m using the openjdk version of java and it prefers sun’s java or not but this is turning out to be less than straight forward.

You could try if it works better with the proprietary java, here is a howto
http://tinyurl.com/cbazpf3


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10