cancel
Showing results for 
Search instead for 
Did you mean: 

jco 2.0.10 - HPUX - use_sapgui=2

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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

Former Member
0 Kudos

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