Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

NW 6.40 Installation on linux: Start SAPGUI

Former Member
0 Kudos

Hi all,

I'm installing NW Testdrive webAS6.40 on Linux. The server installation and the installation of SAPGUI were fine, without errors.

Starting SAPGUI (with gui command as nw4adm-user) fails with error:

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

Before I started the WebAS with command: startsap nw4host.

Do I need to set these pathes somewhere in the system?

I'm not so familiar with linux.

Thanks for your help!

Johannes

  • SAP Managed Tags:
1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Rolf-Martin,

many thanks for your hint that SAPGUI for Java 6.40 is available.

I installed it as discribed in the manual, started with the guilogon script and the window SAPGUI for Java opened.

Unfortunately the mainwindow is empty and the configuration must be done. The content of platin.ini is:

  1. @INCLUDE = http://sapguiconfig/platin.ini

@StreamlineDefault = Streamline

@TradeshowDefault = Tradeshow

@lookAndFeelDefault = null

@language = en

@autoSelectMode = true

When I look in the manual for admin configuration it sounds a little bit complicated.

I want to use GUI within the NW 6.40 testdrive using Firefox browser.

Can you give me a standard configuration for this case?

Many thanks for your help!

Johannes

  • SAP Managed Tags:
15 REPLIES 15

RMW
Advisor
Advisor
0 Kudos

Hi,

please do not use the SAPGUI for Java from that DVD. It comes with its own (unsupported) start script which causes several issues.

Please use latest SAPGUI for Java available at http://service.sap.com/sapgui-java.

Best regards

Rolf-Martin Woersinger

SAPGUI for Java project lead

  • SAP Managed Tags:

Former Member
0 Kudos

Hello Rolf-Martin,

thank you for your answer!

I downloded PlatinGUI-Linux-640alpha3.jar but I can't find any hint how to install it. I extracted it and expected something like install.sh or a help file.

I also don't know if it is necessary to uninstall the previous GUI-Installation that doesn't work.

If so, I can't find it in the linux directories...

Thanks in advance for your help.

Best regards,

Johannes

  • SAP Managed Tags:

0 Kudos

Hello Johannes,

in the download section on http://service.sap.com/sapgui-java, where you can get latest 6.30 version, you also can find the manual as zip and compressed tar files. To answer your question, you can start the installation with

java -jar <jar-file>

I would recomment to use the 6.30 version for now, since that 6.40 alpha 3 version you downloaded was mainly a showcase for Web Dynpro and not meant to be used with WebAS. The final 6.40 version will be available soon though.

Best regards

Rolf-Martin

  • SAP Managed Tags:

Former Member
0 Kudos

Hello Rolf-Martin,

thanks again for your help and your time.

I installed PlatinGUI-Linux-630r8, but the installation fails. Please see the errors below. Maybe the configuration is not fine:

1) - I'm working on Linux Suse 9.1.

--> the manual mentions version 8.1. Is 9.1 ok?

- I havn't yet installed the Netscape plugin for Java

1.4.2_08.

--> I'm not working with Netscape. Is this step

necessary?

- I'm not sure if the native threat support is

enabled

--> where can I get this info?

2) - I've set the variables in etc/sysconfig:

PLATIN_JAVA_VERS="1.4.2_08" and

PLATIN_JAVA="/home/schulte/jdk1.4.2_08/bin/java".

--> should be ok, right?

I logged on as NW4ADM user. Here below the error log.

I hope that you have an idea, what's wrong...

Best regards, Johannes

nw4host:nw4adm 1> java -jar /home/schulte/Documents/PlatinGUI-Linux-630r8.jar

Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified

Exception in thread "main" java.lang.NoClassDefFoundError

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 javax.swing.ImageIcon.<init>(ImageIcon.java:205)

at javax.swing.LookAndFeel$1.createValue(LookAndFeel.java:274)

at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:184)

at javax.swing.UIDefaults.get(UIDefaults.java:129)

at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)

at javax.swing.UIDefaults.getIcon(UIDefaults.java:410)

at javax.swing.UIManager.getIcon(UIManager.java:537)

at javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType(BasicOptionPaneUI.java:555)

at javax.swing.plaf.basic.BasicOptionPaneUI.getIcon(BasicOptionPaneUI.java:543)

at javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea(BasicOptionPaneUI.java:313)

at javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:154)

at javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:122)

at javax.swing.JComponent.setUI(JComponent.java:449)

at javax.swing.JOptionPane.setUI(JOptionPane.java:1693)

at javax.swing.JOptionPane.updateUI(JOptionPane.java:1715)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1678)

at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:828)

at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:642)

at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:613)

at com.sap.platin.install.GuiInstall.showMessage(GuiInstall.java:701)

at com.sap.platin.install.GuiInstall.main(GuiInstall.java:404)

  • SAP Managed Tags:

0 Kudos

Hello Johannes,

1) Suse 9.1 is fine as well, in the upcoming 6.40 version of SAPGUI for Java it will be listed officiallly.

You do not need Java Plug-in as long you are not planning to use SAPGUI for Java running inside Netscape/Mozilla.

In the meantime, asking for native thread support is an anachronism. This was relevant for first JavaVMs available on Linux. This has been removed from documentation in 6.40 version.

2) PLATIN_JAVA should be fine, PLATIN_JAVA_VERS should be PLATIN_JAVA_VER (without S), but this is not the cause of your current problem

3) This error message indicates that X applications do not have access to the display. Starting e.g. xclock will also fail. You might have changed to root before installing but lost permissions to access X display. So please make sure that the user you are installing with has access to X display.

Hope this helps.

Best regards

Rolf-Martin

  • SAP Managed Tags:

Former Member
0 Kudos

Hi everybody:

I've just installed the 6.30 2nd rev, according to the users guide, i've set all the environment variables to run the GUI over the VM, the variables are set as follows:

PLATINHOME=/home/developer/SAPGUI/6.30rev2

PLATIN_JAVA=/usr/java/jre1.5.0_02/bin/java

PLATIN_JAVA_VER=1.5.0_02

But the problem starts when i try to run the GUI in a terminal, it raises the next exception:

-


Splash image not found

java.lang.ClassNotFoundException: com.sap.platin.micro.Microkernel

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at com.sap.platin.Gui.main(Gui.java:40)

-


Do i need to do something else to make it run as well?

My plataform it's Linux Ubuntu Hoary, kernel 2.6.10

  • SAP Managed Tags:

0 Kudos

Hello Gerardo,

I recommend to use the latest version available on http://service.sap.com/sapgui-java and run it on a supported JRE.

See http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200000505582003 for details.

Best regards

Rolf-Martin

  • SAP Managed Tags:

0 Kudos

Hi Rolf-Martin:

I've downloaded the latest release, the 6.30 8th rev. But still having problems when trying to run de GUI, i think i should resolve resources dependencies, specifically the libstdc++-libc6.2-2.so.3 library, but i haven't' found yet, i'm trying on the debian lib repositories, but unfortunately i haven't found any results on my search.

Do you have any tip?

I appreciate your help. Best regards,

Gerardo.

-


Splash image not found

                                                          1. ERROR #############################

27.04. 11:32:29.987 ERROR: Cannot load shared library 'JPlatin' or some dependent library: java.lang.UnsatisfiedLinkError: /home/developer/SAPGUI/6.30rev8/bin/libJPlatin.so: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

                                                          1. ERROR #############################

java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library

at com.sap.platin.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:27)

at com.sap.platin.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:265)

at com.sap.platin.connection.GuiConnection.open(GuiConnection.java:261)

at com.sap.platin.application.GuiApplication.createConnection(GuiApplication.java:1018)

at com.sap.platin.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)

at com.sap.platin.logon.GuiImpl.<init>(GuiImpl.java:29)

at com.sap.platin.logon.GuiImpl.main(GuiImpl.java:356)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.sap.platin.Gui.main(Gui.java:65)

                                                          1. ERROR #############################

27.04. 11:33:01.636 ERROR: GuiConnection: Connect failed

JniAgiLibAdaptor.<init>: Cannot load JNI library

                                                          1. ERROR #############################

Gui: Exception occuredjniExitCWorld

java.lang.UnsatisfiedLinkError: jniExitCWorld

at com.sap.platin.util.JniGuiUtilities.jniExitCWorld(Native Method)

at com.sap.platin.util.JniGuiUtilities.exitCWorld(JniGuiUtilities.java:32)

at com.sap.platin.application.GuiApplication.remove(GuiApplication.java:1463)

at com.sap.platin.cfw.GuiContainer.remove(GuiContainer.java:53)

at com.sap.platin.cfw.GuiComponent.cleanUp(GuiComponent.java:58)

at com.sap.platin.cfw.GuiContainer.cleanUp(GuiContainer.java:77)

at com.sap.platin.connection.GuiConnection.cleanUp(GuiConnection.java:864)

at com.sap.platin.automation.GuiAutomationDispatcher.destroyObject(GuiAutomationDispatcher.java:216)

at com.sap.platin.connection.GuiConnection.open(GuiConnection.java:316)

at com.sap.platin.application.GuiApplication.createConnection(GuiApplication.java:1018)

at com.sap.platin.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)

at com.sap.platin.logon.GuiImpl.<init>(GuiImpl.java:29)

at com.sap.platin.logon.GuiImpl.main(GuiImpl.java:356)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.sap.platin.Gui.main(Gui.java:65)

  • SAP Managed Tags:

0 Kudos

Hello Gerardo,

The dependency to libstdc++-libc6.2-2.so.3 comes from gcc 2.95.

The library itself can be found in the libstdc++2.10-glibc2.2 package:

Package Contents Search Results

You have searched for the contents of libstdc++2.10-glibc2.2 in stable, architecture i386.

Package contains 7 files, displaying files 1 to 7.

FILE PACKAGE

usr/lib/libstdc+-3-libc6.2-2-2.10.0.so base/libstdc+2.10-glibc2.2

usr/lib/libstdc+-libc6.2-2.so.3 base/libstdc+2.10-glibc2.2

usr/share/doc/libstdc+2.10-glibc2.2/README.Bugs.gz base/libstdc+2.10-glibc2.2

usr/share/doc/libstdc+2.10-glibc2.2/README.Debian.gz base/libstdc+2.10-glibc2.2

usr/share/doc/libstdc+2.10-glibc2.2/changelog.Debian.gz base/libstdc+2.10-glibc2.2

usr/share/doc/libstdc+2.10-glibc2.2/copyright base/libstdc+2.10-glibc2.2

usr/share/doc/libstdc+2.10-glibc2.2/test-summary.gz base/libstdc+2.10-glibc2.2

with kind regards

Michael Barth

  • SAP Managed Tags:

Former Member
0 Kudos

Hello Rolf-Martin,

many thanks for your hint that SAPGUI for Java 6.40 is available.

I installed it as discribed in the manual, started with the guilogon script and the window SAPGUI for Java opened.

Unfortunately the mainwindow is empty and the configuration must be done. The content of platin.ini is:

  1. @INCLUDE = http://sapguiconfig/platin.ini

@StreamlineDefault = Streamline

@TradeshowDefault = Tradeshow

@lookAndFeelDefault = null

@language = en

@autoSelectMode = true

When I look in the manual for admin configuration it sounds a little bit complicated.

I want to use GUI within the NW 6.40 testdrive using Firefox browser.

Can you give me a standard configuration for this case?

Many thanks for your help!

Johannes

  • SAP Managed Tags:

0 Kudos

Hello Johannes,

in case you want to connect just to that single WAS server without any load balancing, the easiest way is to go to the "New connection" dialog, use the "Advanced" tab and enter the connection string as conn=/H/<appservername>/S/<portnumber>.

By default, the portnumber is 3200.

For running the SAP GUI inside FireFox, please create a page on a web server like descriped in "Setting up the installation web server" in 8.2. Web Server installation and modify the connection string of demo.htm like described above.

Best regards

Rolf-Martin

  • SAP Managed Tags:

0 Kudos

Hello Rolf-Martin:

I've installed the last GUI release (6.40), and i found it more stable than last ones i have installed before, but i found a little bug when i tried to debug an ALV Grid, and it is that the buttons from "CUT" to "DELETE ROW" are not working good, even when i run it in debugging mode, there's no event handled when i try to push them.

What could be the happening with these buttons?

The other buttons like, "Sort Ascending", "Sort Descending", "Refresh", "Detail", "Export to", etc. are working good.

Do i need to integrate desktop aplications like an office package to make them work good?

I'll appreciate a little bit of help to solve these problems.

  • SAP Managed Tags:

0 Kudos

Hello Gerardo,

the grid control has been completely rewritten for the 6.40 version. We have done a lot of testing, but it seems that you found a bug we have not discovered before.

Please create an OSS message on component BC-FES-JAV and include the description how to get into this situation. In case it is a custom transaction, please provide also remote logon information.

Thanks in advance

Rolf-Martin

  • SAP Managed Tags:

0 Kudos

As soon as i get the OSS message from basis, i'll send you the description of how to get into this situation.

I hope we will find a solution to this problem because it's critical for us to work with all the ALV functions.

Best regards,

Gerardo.

  • SAP Managed Tags:

0 Kudos

Hello Rolf-Martin,

I've already post the OSS message at SAP within all the details of how to get into this bug situation. I'll be aware of any answer from SAP team whenever they let us know how to get a fix to solve this bug.

Thanks,

best regards.

Gerardo.

  • SAP Managed Tags: