Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Help req'd with Java trading software

  1. #1
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default 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
    Code:
    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?
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  2. #2

    Default Re: Help req'd with Java trading software

    Hi, normally java jar files are started with "java -jar whatever" so try with
    Code:
     java -jar xf unixmacosx.jar
    . HTH Lenwolf

  3. #3
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Help req'd with Java trading software

    Quote Originally Posted by lenwolf View Post
    Hi, normally java jar files are started with "java -jar whatever" so try with
    Code:
     java -jar xf unixmacosx.jar
    . HTH Lenwolf
    Thanks for the quick reply.

    I just tried your suggestion and got the error
    Code:
    Unable to access jarfile xf
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  4. #4

    Default Re: Help req'd with Java trading software

    Quote Originally Posted by lenwolf View Post
    Hi, normally java jar files are started with "java -jar whatever" so try with
    Code:
     java -jar xf unixmacosx.jar
    . HTH Lenwolf
    Ok, I tried that, but it doesn't work. However, the initial command
    Code:
     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

  5. #5
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Help req'd with Java trading software

    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
    Typing java I get
    Code:
    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.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Help req'd with Java trading software

    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



  7. #7
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Help req'd with Java trading software

    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
    Code:
    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?
    Code:
    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"
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  8. #8
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Help req'd with Java trading software

    Quote Originally Posted by martin_helm View Post
    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
    Ah, thanks. That worked.

    I still get the errors I mentioned above though.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Help req'd with Java trading software

    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



  10. #10
    Join Date
    May 2009
    Location
    US
    Posts
    867

    Default Re: Help req'd with Java trading software

    Thanks. I'll wait to see what you find.
    IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSUSE Tumbleweed
    Dell XPS 13 9360 | openSUSE Leap 42.3

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •