Skip to Content

Java JCO 64bit installed but the system in looking for the 32-bit version

I am trying to utilize the Java connector inside a Java application (running on a 64bit JDK). When compiling I am getting:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\SAP\SAP Business One DI API\JCO\LIB\sbojni.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

Any idea how to make the compiler look for the 64-bit dll?

Side question, is it safe to simple uninstall the 32-bit JCO and keep the 64-bit one?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 23 at 02:30 AM

    Hi Waseem

    I have the same problem like you.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 23 at 03:41 AM

    OK I found that

    1. You just uninstall JAVA JDK for 64bit and install 32bit.

    2. Remove JAVA folder in Drive C:\Program Files\JAVA.

    3. Change JAVA_HOME to Path to C:\Program Files (x86)\Java\jdk1.8.0_201.

    4.Change JRE_HOME to C:\Program Files (x86)\Java\jre1.8.0_201

    5. Restart you Computer.

    6. My case using Netbean.and Run Program with 32bit.

    I thing this can help you

    Add comment
    10|10000 characters needed characters exceeded