LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-07-2008, 05:28 AM   #1
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: openSUSE 11.4, openSUSE 12.3, SLES 11, Archlinux
Posts: 129

Rep: Reputation: 16
Working with 32 bit JVM on 64 system - SAPGUI problem


Hi,

I have installed OpenSUSE 11 64 bit system on my laptop.

Now, I want to have SAPGUI for Java (Revision 2 or 4) running on it.

SAP says "There is no 64-bit version of SAP GUI for Java available" and provides following information:

"SAP GUI for Java can be run on 64-bit hardware provided there is a 32-bit Java runtime environment available for that hardware and operating system. For updates see SAP note 1018530"

Can anybody shortly describe what do I have to change in the system? I already installed following package:
jdk-6u6-linux-i586.rpm

I would like to use 32bit Java only for SAPGUI. Maybe there are some variables I have to set before I start???

I tried, but it didn't work.

HERE SOME ADDITIONAL INFORMATION:
Code:
linux-qjxa:/usr/java # ls
default  j2sdk1.4.2_17  jdk1.6.0_06  latest
linux-qjxa:/usr/java # echo $JAVA_HOME
/usr/lib64/jvm/jre
linux-qjxa:/usr/java # echo $JAVA_LIBDIR

linux-qjxa:/usr/java # cat /etc/java/java.conf
# System-wide Java configuration file                                -*- sh -*-
#
# JPackage Project <http://www.jpackage.org/>
# Location of jar files on the system
JAVA_LIBDIR=/usr/share/java
# Location of arch-specific jar files on the system
JNI_LIBDIR=/usr/lib64/java
# Root of all JVM installations
JVM_ROOT=/usr/lib64/jvm
# You can define a system-wide JVM root here if you're not using the default one
#JAVA_HOME=$JVM_ROOT/java
# Options to pass to the java interpreter
JAVACMD_OPTS=
linux-qjxa:/usr/java #
AND HERE ERROR:
Code:
rafal@linux-qjxa:~/SAPClients/SAPGUI7.00rev2/bin> export JAVA_HOME=/usr/java/jdk1.6.0_06/
rafal@linux-qjxa:~/SAPClients/SAPGUI7.00rev2/bin> echo $JAVA_HOME
/usr/java/jdk1.6.0_06/
rafal@linux-qjxa:~/SAPClients/SAPGUI7.00rev2/bin> ./guilogon
############################# ERROR #############################
07.07. 12:22:45.766 ERROR: Attempt to load shared library /home/rafal/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.so failed.
07.07. 12:22:45.766 ERROR: The library file exists, so either the program
07.07. 12:22:45.766 ERROR: don't has the privileges to access the library
07.07. 12:22:45.766 ERROR: or the library is not loadable by the shared object loader
07.07. 12:22:45.766 ERROR: Technical information:
07.07. 12:22:45.766 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
07.07. 12:22:45.766 ERROR: Error message : /home/rafal/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.so: /home/rafal/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
############################# ERROR #############################
java.lang.UnsatisfiedLinkError: /home/rafal/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.so: /home/rafal/SAPClients/SAPGUI7.00rev2/bin/libJPlatin.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
	at java.lang.Runtime.load0(Runtime.java:770)
	at java.lang.System.load(System.java:1005)
	at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
	at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
	at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
	at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
	at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
	at com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:616)
	at com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:388)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
	at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:25)
	at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
	at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
	at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
	at com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:616)
	at com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:388)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
############################# ERROR #############################
07.07. 12:22:52.914 ERROR: GuiConnection: Connect failed
07.07. 12:22:52.914 ERROR: JniAgiLibAdaptor.<init>: Cannot load JNI library
############################# ERROR #############################

Does anybody have some suggestions what I can/should try to make it work?

regards

Rafal
 
Old 07-09-2008, 03:48 AM   #2
RAFAL
Member
 
Registered: Feb 2006
Location: Warsaw, Poland
Distribution: openSUSE 11.4, openSUSE 12.3, SLES 11, Archlinux
Posts: 129

Original Poster
Rep: Reputation: 16
Hi,

I was advised by SAP how to solve it (there is one variable I didn't know - PLATIN_JAVA).

Before using SAPGUI for JAVA just execute this (assuming you are using BASH and JAVA 32 bit is installed in /usr/java/jdk1.6.0_06):

export PLATIN_JAVA=/usr/java/jdk1.6.0_06/jre/bin/java
export PLUGIN_HOME=/usr/java/jdk1.6.0_6/jre/plugin
export JAVA_HOME=/usr/java/jdk1.6.0_6/jre

regards
Rafal
 
  


Reply

Tags
java, opensuse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sha256 not working on Linux 64 bit system sjain Programming 1 05-28-2008 03:56 PM
Problem with SAPGUI on FEDORA highlander8 Linux - Software 0 07-18-2007 03:04 PM
How to run SAP (sapgui) on linux System fedemw Linux - Software 4 09-14-2006 09:00 AM
Problem with SAPGui installation solegiallo Linux - Software 0 09-29-2003 09:18 AM


All times are GMT -5. The time now is 06:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration