Skip to Content
avatar image
Former Member

JCO over HP-UX running Itanium 64 bits not working

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 24, 2005 at 04:32 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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