on 07-17-2014 11:48 PM
I'm in the mid of developing an android application, which is to connect to SAP CRM system to fetch some data. I'm using JCO for the same. When I run it as standalone java application (i.e. not in android platform) I can successfully fetch data. But when I run the same as android application, I get the following error in log cat:
Caused by: java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: Couldn't load sapjco3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.firstapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.firstapp-1, /system/lib]]]: findLibrary returned null
I have added the jco library in libs folder of my android project and tried several variations. The error persists.
Can someone please help ?
Regards,
Padma
Hallo,
that won't work!
JCo requires a native library that is not available for Android platforms.
Maybe someday it will be available.
Regards
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On windows the JCO jar relies on some external windows DLLs as well to communicate with the backend. I suspect that is the problem as is it trying to find the DLL library to load and cannot find and load it.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you have any success with that question? I think that JCO can't be used in Android OS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check your java build path, make sure you have check marked your libraries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you developing an app that directly connecting to CRM system ? What is the interface? Can you give more information on the steps you followed to develop the app.
Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.