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 'com.sap.mw.jco.rfc.MiddlewareRFC'
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
ystem32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Ja
vaConnector\sapjco.jar;C:\j2sdk1.4.2_12\bin;]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:776)
at de.lymez.sti.SAPAufruf.getDocnr(SAPAufruf.java:26)
at de.lymez.sti.Aufruf.main(Aufruf.java:12)
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,
Timo