Skip to Content
Former Member
Nov 07, 2006 at 06:03 PM

Java Application as jar File cannot connect to SAP via JCO


Hey guys,

I wrote a test class to play a little with the java connector. Everything worked fine.

Now I want to pack my java class and the JCO classes in one jar file. I have written a manifest file with the Main-Class statement and after I start the jar file I got following exception:

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classIniti

alize(): Could not load middleware layer ''

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

rfc in java.library.path]. java.library.path [C:\WINDOWS\system32;.;C:\WINDOWS\S




at de.lymez.sti.SAPAufruf.getDocnr(

at de.lymez.sti.Aufruf.main(

Can anyone help me? I don't think that I forget something during the JCO installation, because my class file worked fine and give me the correct values out of the SAP System.

Best regards,