on 03-20-2008 10:06 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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.
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.