cancel
Showing results for 
Search instead for 
Did you mean: 

sapjco: Couldn't load middleware layer

Former Member
0 Kudos

Hi, I have some problem with sapjco. When I start the application I have an error: u201Cjava.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

access denied (java.util.PropertyPermission jco.middleware_library read)

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

at app_draw.connect(app_draw.java:44)

at app_draw.start(app_draw.java:18)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)u201D

I use sapjco 2.1.8.

I start sapjco.jar from command string (java u2013jar sapjco.jar) SAPJCo application open. In the PATH block there are there are tree points: JCo classes, JCo library, RFC library. Opposite RFC library the system written u201CSystem-defined pathu201D

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you for your answers.

Do you ever use SAP JCo in your projects?

Can you give me a root to deploy the archives (two dll, and sapjco.jar)

I use Windows XP, jre6.

Thank you for you attention.

Former Member
Former Member
0 Kudos

Hi,

These exceptions typically occur when different versions of sapjcorfc.dll and sapjco.jar have been installed. Anytime the JCo connector is upgraded to a new version, you need to ensure that all three libraries are updated (librfc32.dll, sapjcorfc.dll, and sapjco.jar). If any are left at the older version, one of the above exceptions is likely to occur.

regards

Manohar

Former Member
0 Kudos

Sorry, but it couldnu2019t help me.

I have 3 files from the same archive.

Iu2019ve copy librfc32.dll and sapjcorfc.dll into c:\windows\system32

Check the PATH.

Nothing happened (the same trouble) when I start my application with sapjco.jar.

ravindra_bollapalli2
Active Contributor
0 Kudos

hi Glavin,

in that link what i posted to u there are some more links u have u can refer those also

in my point of u ther is path problem. application is unable to get the absolute path

refer this wikki u wll get some idea

https://wiki.sdn.sap.com/wiki/display/EP/PointersforTroubleshootingPortalRuntime+Errors

bvr

ravindra_bollapalli2
Active Contributor
0 Kudos

hi Glavin,

this may be the one of the reason

http://searchsap.techtarget.com/generic/0,295582,sid21_gci1096472,00.html#

let me know u need any further information

bvr