Mindtwist.de

...let your mind twist!

Workaround for Xming and SAP sapinst blank screen issue

When using Xming to display the SAP sapinst gui on a Windows box, the window will be blank. There are a lot of discussions about this issue (e.g. http://scn.sap.com/thread/1913601).

For RHEL I have found the following workaround:

1.    Rename the jre directory in the original sapinst directory to jre.disabled

$ cd sapinst
$ mv jre jre.disabled
2.    Download / Install java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64.rpm from Red Hat Network. Or use the package from Scientific Linux:
$ yumdownloader java-1.7.0-openjdk-1.7.0.9-2.3.3.el6_3.1.x86_64
$ wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.3/x86_64/os/Packages/java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86_64.rpm
3.    Extract rpm contents
$ cpio -id < java-1.7.0-openjdk-1.7.0.9-2.3.3.el6_3.1.x86_64.cpio
4.    Move jre files
$ mv usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre jre
5.    Cleanup
$ rm -rf usr
$ rm -f java-1.7.0-openjdk-1.7.0.9-2.3.3.el6_3.1.x86_64.cpio
$ rm -f java-1.7.0-openjdk-1.7.0.9-2.3.3.el6_3.1.x86_64.rpm
6.    Run sapinst
$ sudo ./sapinst
7.    …
8.    Profit!

This also works on RHEL 5 even when the jdk was originally packaged for RHEL 6.
 

Linux Magazine

Linux Magazine News (path: lmi_news)