cancel
Showing results for 
Search instead for 
Did you mean: 

JCO over HP-UX running Itanium 64 bits not working

Former Member
0 Kudos

Hi,

I´ve downloaded sapjco-hpia64-2.1.4.tgz, and installed it in a Itanium machine, running HPUX B.11.23. The problem comes when I try to connect with SAP using JCO. The virtual machine throws an execption with this message:

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize():

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at com.sap.mw.jco.JCO.(JCO.java:735)

at com.wurth.broker.sap.conexion.ClienteSAP.conectar(ClienteSAP.java:86)

at com.wurth.broker.sap.consulta.morosidad.test.TestMain.test1(TestMain.java:78)

at com.wurth.broker.sap.consulta.morosidad.test.TestMain.main(TestMain.java:36)

I think that the problem with the initialization is because i execute JVM with the -d64 modifier, but version of JCO is 64bit-compatible.

Can anyone help me?

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

ilja_farber
Employee
Employee
0 Kudos

I would wondering if you really got 32-bit libraries.

Just check this with file, e.g.

% file libsapjcorfc.so

libsapjcorfc.so: ELF-64 shared object file - IA64

% file librfccm.so

librfccm.so: ELF-64 shared object file - IA64

Former Member
0 Kudos

Hi llja,

These are the outputs of the 'file' command that you request:

file libsapjcorfc.so

libsapjcorfc.so: ELF-64 shared object file - IA64

file librfccm.so

librfccm.so: ELF-64 shared object file - IA64

Thanks for you reply

Jose

Former Member
0 Kudos

Hi,

The problem was with the option '-d64' that I must pass to JVM. If I pass this option in the last position of the command line, the JVM seems to ignore it, and works in 32 bit mode. If I put '-d64' as the first option in the command line, all works fine.

Jose