on 06-02-2014 12:28 PM
Hi everyone,
I am facing a problem with JCO3 under ubuntu 12.04 LTS.
I have downloaded sapjco3-linuxx86_64-3.0.11.tgz adn extracted it to "/sapjco/".
After that I made the follwing entry in "/etc/environment":
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/sapjco"
CLASSPATH="$CLASSPATH:/sapjco/sapjco3.jar"
When I start my Java Application I get the following error:
java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
Anybody an idea what's wrong here?
Regards
Markus
Hi Markus,
put the library next to the JAR - into the same directory. That's the place, where JCo is looking first. Please note that Ubuntu is not one of the supported Linux distributions (SLES, RHEL in various versions, check note 1077727 for details). But if the runtime libraries are fitting it should still run.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
follow with your con,but on error:
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libsapjcorfc.so: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libsapjcorfc.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 64-bit .so on a AMD 64-bit platform)]. java.library.path [/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib]
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.