cancel
Showing results for 
Search instead for 
Did you mean: 

SAPGUI problems

Former Member
0 Kudos

I am trying to run NW4 trial on SUSE 10.1 however I am unable to run the gui. Can someone offer some insight, I am getting the following response after each attempt:

# gui
JAVA=/usr/lib/java/bin/java: Command not found.
PH=/opt/SAPGUI/6.30rev4/jar: Command not found.
SOI=/opt/staroffice7/program/classes: Command not found.
JAVA: Undefined variable.

Thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please set the path for JAVA.

Eg :

JAVA_HOME=/opt/java1.4; export JAVA_HOME

PATH=$:/opt/java1.4/bin; export PATH

Cheer

Edited by: Shaji Jacob on Mar 20, 2008 10:23 PM

Former Member
0 Kudos

I tried to set them up in java.conf, but I'm still receiving the same error messages. Is there another location where I should make those changes?

Thanks

Former Member
0 Kudos

Hi.

try following

cat /usr/local/bin/sapgui.sh

#!/bin/sh

export JAVA_HOME=/usr/java/jdk1.4.x_XX

export PLATIN_JAVA_VER=1.4.x_xx

export PLATIN_JAVA=$JAVA_HOME/bin/java

export LD_LIBRARY_PATH=/opt/SAPGUI**/bin/opt/SAPGUI**/bin/guilogon

change the above value according to your version.

regards,

kaushal

Former Member
0 Kudos

Kaushal,

I added the following, as per your recommendations.

export JAVA_HOME=/usr/java/jdk1.4.2_13-b06
export PLATIN_JAVA_VER=1.4.2_13-b06
export PLATIN_JAVA=$JAVA_HOME/bin/java
export LD_LIBRARY_PATH=/opt/SAPGUI***/bin/opt/SAPGUI***/bin/guilogon

Now I am receiving the following:

export: Command not found.
export: Command not found.
export: Command not found.
export: No match.

Thanks for your kind help.

hannes_kuehnemund
Active Contributor
0 Kudos

Dear conrad,

"export" works for bash for example. Please check, which shell is running by typing

"echo $0" or

"echo $SHELL"

If you have a csh (C-shell), you need to replace the export command with the setenv command and remove the equal signs between the variable name and the values.

Additionally, if you placed the commands in a script, you have to give the hashbang e.g. "!#/bin/bash" or any other shell as the header of the script...

Thanks,

Hannes

Former Member
0 Kudos

Thanks Hannes.

I made your recommended changes to reflect my use of bash in the script. However now when I try to run the gui I am getting the following:

/usr/local/bin/gui: line 11: -Xms32M: command not found

Line 11 in the script shows as:

${JAVA} -Xms32M -Xmx128M -cp ${PH} /platincoreS.jar:\

What should I do now?

Thanks.

hannes_kuehnemund
Active Contributor
0 Kudos

Hi conrad,

could you please insert a new line above this particular $ command with the following content: echo "$"

When starting the script, it should give you information about the java which is used. It may be the case, that the version you are using does not understand the switches ...

Thanks,

Hannes

Former Member
0 Kudos

Hannes,

After making your suggested change and running the gui, I got the following :

nw4host:nw4adm 16> gui
/usr/lib/java/bin/java
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Exception in thread "main" 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.<clinit>(X11GraphicsEnvironment.java:134)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
        at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:81)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at java.awt.Toolkit$2.run(Toolkit.java:748)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
        at com.sap.platin.util.GuiSystem.<clinit>(GuiSystem.java:119)
        at com.sap.platin.application.GuiApplication.<init>(GuiApplication.java:101)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at com.sap.platin.automation.GuiClassDescriptor.newInstance(GuiClassDescriptor.java:98)
        at com.sap.platin.automation.GuiAutomationDispatcher.createObject(GuiAutomationDispatcher.java:133)
        at com.sap.platin.automation.GuiAutomationDispatcher.<init>(GuiAutomationDispatcher.java:98)
        at com.sap.platin.automation.GuiAutomationDispatcher.<clinit>(GuiAutomationDispatcher.java:59)
        at com.sap.platin.application.GuiApplication.currentApplication(GuiApplication.java:145)
        at com.sap.platin.logon.GuiImpl.evalCommandLine(GuiImpl.java:110)
        at com.sap.platin.logon.GuiImpl.<init>(GuiImpl.java:30)
        at com.sap.platin.logon.GuiImpl.main(GuiImpl.java:367)

Here's the script with all the suggested changes so far:

#!/bin/bash
# 
JAVA=/usr/lib/java/bin/java
PH=/opt/SAPGUI/6.30rev4/jar
SOI=/opt/staroffice7/program/classes
export JAVA_HOME=/usr/java/jdk1.4.2_13-b06
export PLATIN_JAVA_VER=1.4.2_13-b06
export PLATIN_JAVA=$JAVA_HOME/bin/java
export LD_LIBRARY_PATH=/opt/SAPGUI***/bin/opt/SAPGUI***/bin/guilogon

echo "${JAVA}"
${JAVA} -Xms32M -Xmx128M -cp ${PH}/platincoreS.jar:\
${PH}/GuiStartS.jar:\
${SOI}/jurt.jar:\
${SOI}/unoil.jar:\
${SOI}/ridl.jar:\
${SOI}/sandbox.jar:\
${SOI}/juh.jar:\
${SOI}/officebean.jar:\
${PH}/AcrobatViewerS.jar:\
${PH}/platincoreS.jar:\
${PH}/IceBrowserS.jar:\
${PH}/Manual.jar:\
${PH}/SunOS-gmux.jar:\
${PH}/SunOS-graphics.jar:\
${PH}/SunOS-lib.jar:\
${PH}/Unix-localstart.jar:\
${PH}/iCubeS.jar:\
${PH}/GuiStartS.jar:\
${PH}/sapCalendarS.jar:\
${PH}/sapChartS.jar:\
${PH}/sapContextMenuS.jar:\
${PH}/sapGridS.jar:\
${PH}/sapHtmlViewerS.jar:\
${PH}/sapImageS.jar:\
${PH}/sapTextEditS.jar:\
${PH}/sapToolBarS.jar:\
${PH}/sapTreeS.jar:\
${PH}/SapOffice.jar com.sap.platin.logon.GuiImpl

Thank you for your help.

hannes_kuehnemund
Active Contributor
0 Kudos

Dear conrad,

I assume, that you are trying to start the GUI remotely on the server where no X is running or no DISPLAY variable is set. Two possibilities:

  • If the "server" is your destop machine, install the GUI as your local user and not as nw4adm!

  • If the "server" is a stand alone machine, install the GUI on your desktop as your local user.

Thanks,

Hannes

Former Member
0 Kudos

Hannes,

Thanks very much for your help! It is finally working!

Cheers!

Answers (0)