Since the SAP Console for .NET is no longer supported by SAP, I am now looking for an alternative to connect the Microsoft world to the SAP world. I know that there are third-party products, such as "ERPConnect", but I want to do this using tools from SAP (by the way, I can not use Enterprise Services , because the target SAP system is SAP 4.6C ). So there was a crazy idea to use the SAP Java Connector in combination with the IKVM.NET tool (www.ikvm.net/devguide/net2java.html). IKVM.NET provides an IKVMC tool that converts Java bytecode to .NET dll and exe. "No sooner said than done!" I converted the SAP JCo DLL to .NET and created a new Visual Studio solution. I put all the JCO files in a subdirectory of my solution. I installed 2 links to the generated IKVM.OpenJDK.Core.dll and sapjco.dll files. Great, all the JCO classes that are now available as .NET classes. Full of optimism I wrote some code to connect to the SAP system.
JCO.Client client = null; client = JCO.createClient (...)
There were no errors compiling my test code. "Wonderful!" I thought. Then I started using the tetstapplication method. Unfortunately, I have an exception that throws JCO.createClient:
Failed to load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' \ r \ nno sapjcorfc in java.library.path
I have 2 questions on this topic.
1) Do you think my idea of ββusing the SAP Java Connector (SAP JCo) to connect .NET with SAP is a good idea or is this nonsense? Maybe someone had the same idea :-)
2) How can the above exception be resolved?
Kottan
source share