Skip to Content

jco 2.0.10 - HPUX - use_sapgui=2

Hi All,

i'm using jco with hpux. if the property use_sapgui is set to 0 everything works out fine but if I set it to 2 it won't return from the sap call. It returns only if I disconnect the client or kill the login in SM04.

With JCo Version 2.1.4 it won't even work if I disconnect or kill the login. However with use_sapgui=0 everything works out fine.

The problem only occures on Unix platforms. On Windows everthing works.

Does someone have a glue about the problem?

Tanks, kind regards

jochen

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2004 at 11:13 PM

    Hi Jochen,

    I've never tried that under Unix, but how does the JCo know, where the SAPgui is installed? I.e. under Windows it probably queries the registry, as I never passed any reference as to where the SAPgui is installed.

    Also, when you say it works under Windows, did you use the native or the Java GUI? Did you try tracing it (e.g. strace) to see what happens?

    Best wishes, harald

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2004 at 08:08 AM

    Hi,

    to use the sapgui on unix you've to set some environment variables.

    export SHLIB_PATH=/opt/sapjco

    export CLASSPATH=/opt/sapjco/sapjco.jar

    export PLATINHOME=/opt/sapgui

    export SAPGUI="$PLATINHOME/bin/guistart"

    export PLATIN_JAVA=/opt/java1.4/jre/bin/java

    export PLATIN_JAVA_VER=1.4.0

    The bad thing is that the different jco versions behave different. The latest version (2.1.4) of sapjco does not work with sapgui = 2 at all.

    regards

    jochen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.