Skip to Content
author's profile photo Former Member
Former Member

Java-Program for JCO-Connection

Hallo experts!

I tried to get a Java-Program running which should establish JCO-Connection to a SAP-System and got the following error message:

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.144" but required at least version "640.0.161".

at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)

at JCOTEST.main(JCOTEST.java:24)

Exception in thread "main"

Anyone got an idea?

Thanks for your help in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2007 at 11:26 PM

    hi thomas,

    download the current version of the jco libs from service marketplace

    http://service.sap.com/connectors

    hth

    jens

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2007 at 05:26 AM

    check out this thread and reward points if helpful

    https://forums.sdn.sap.com/click.jspa?searchID=7600129&messageID=4388980

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2008 at 04:45 PM

    Thank you Jens,

    it worked fine with the newest JCo-Download.

    Now I seem to have some Network problem: ip not reached:

    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

    Connect_PM GWHOST=10.251.24.10, GWSERV=sapgw10, ASHOST=10.251.24.10, SYSNR=10

    LOCATION CPIC (TCP/IP) on local host

    ERROR partner not reached (host 10.251.24.10, service 3310)

    I need to talk to our network manager in the firm.

    Regards.

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.