cancel
Showing results for 
Search instead for 
Did you mean: 

Java GUI, Linux, AMD 64bit: "Cannot load JNI library"

Former Member
0 Kudos

I tried to use the 32bit Linux version of java gui under an AMD64bit Linux installation.

JVM is 64bit (Blackdown)

libstdc++ is 32bit

SAP GUI for Java 6.40rev6

The logon pad launches, but at attempting to launch a system I get the following errors:

ERROR: Cannot load shared library 'JPlatin' or some dependent library: java.lang.UnsatisfiedLinkError: no JPlatin in java.library.path

ERROR: GuiConnection: Connect failed

JniAgiLibAdaptor.<init>: Cannot load JNI library

My guess is that this is similar to MAC on intel yet unsupported platform issue.

If so:

a. are there plans to support 64bit Linux

b. is there a work-around? (e.g. installing 32bit jvm, a chrooted 32bit installation)

Thank you all,

Menelaos Maglis

Accepted Solutions (1)

Accepted Solutions (1)

RMW
Advisor
Advisor
0 Kudos

Hello,

we currently have no concrete plans to support 64bit because of lack of resources to port the native parts of SAP GUI for Java.

As a workaround I suggest to use the 32bit JVM listed in the system requirements for Linux.

Best regards

Rolf-Martin

Former Member
0 Kudos

We have started getting 64bit pc's here and it would be really nice to have a 64bit Java GUI for Linux.

The workaround for now is to install a 32bit jvm.

The method , I found working for me best, is to create a 32bit root system using "dchroot" package. Then install the jvm and sapgui and execute commands under the 32bit root filesystem.

There is a detailed forum topic at:

http://www.ubuntuforums.org/showthread.php?t=24575

Former Member
0 Kudos

Hi Rolf,

What about now? in the year of 2007?

does SAP already create 64bit version of SAP GUI for Java ?

I really really need this one ....

Please your help ..

Thanks a lot.

Best Regards,

Donny Christiaan.

former_member185837
Active Participant
0 Kudos

Hi Donny,

no, I'm afraid there's no SAPGUI for Java that can run on 64 bit hardware yet :^(

As [SAP Note 1018530|https://service.sap.com/sap/support/notes/1018530] (SMP login required) says:

The technology behind SAPGUI for the Java Environment is a combination of Java and C/C plusplus , running with the same codebase on all platforms. At the moment the parts that are native for each platform are 32-bit only for technical reasons. This applies to the JPlatin library as well as the graphics, file transfer and network components.

Moreover, the manual of the SAPGUI for Java 7.10 (chapter 3, System Requirements) specify that Sun Java Runtime Environment 5.0 (32-bit) or 6.0 (32-bit) including Java Plugin is needed. [Note 959236 - Supported Java frontend platforms for 7.10|https://service.sap.com/sap/support/notes/959236] confirms that the SAPGUI for Java can only run on the 32 bit version of the JRE.

This is the reason why I get the following error when I try to connect to a system:

JniAgiLibAdaptor.<init>: Cannot load [JNI|http://java.sun.com/javase/6/docs/technotes/guides/jni/index.html] library

Cheers, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari|My wiki profile]

Edited by: Davide Cavallari on Jan 5, 2008 3:09 PM

former_member185837
Active Participant
0 Kudos

Hi,

can't you simply install the 32-bit JRE on a linux x64?

The JavaTM SE 6 Release Notes regarding the [JRE Installation for Linux (64-bit)|http://java.sun.com/javase/6/webnotes/install/jre/install-linux-64.html] say:

On 64-bit Linux platforms the 32-bit JRE and 64-bit JRE cannot co-exist when installed from the RPM bundles. One must install one or the other but not both.

The workaround is to use the .bin bundle and install into distinct directories.

So it seems the 32-bit JRE and 64-bit JRE may co-exist, provided you use the self-extracting file for installation.

Cheers, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari|My wiki profile]

them from

former_member185837
Active Participant
0 Kudos

Hello,

yes, I confirm it's possible to install the 32-bit JRE on a linux x64 platform, and it can coexist with a 64-bit JRE. I managed to install it on an ubuntu gutsy 64 bit, using the Sun's .bin self-extracting file.

As I am on ubuntu, I took advantage of update-alternatives to set the 32-bit JRE as the default one on my system.

Now the SAPGUI Java 7.10 networking capabilities work pretty well.

Cheers, [Davide|https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari|My wiki profile]

Answers (0)