cancel
Showing results for 
Search instead for 
Did you mean: 

Java-Program for JCO-Connection

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi thomas,

download the current version of the jco libs from service marketplace

http://service.sap.com/connectors

hth

jens

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thomas:

How did you fix it?

We have the same issue. Please help. Thanks a lot!!

Former Member
0 Kudos

Hi,

the thing is that our Web Application Server is running in another city. It now turned out that the ports there were not

open. But now they are and we can deploy.

Please reward points.

Thanx.

Thomas

Former Member
0 Kudos

check out this thread and reward points if helpful

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