cancel
Showing results for 
Search instead for 
Did you mean: 

Error: sapJco3 load the Java library

Former Member
0 Kudos

Dear All,

I have a big trouble when I use sapJco3.

I have downloaded a package "sapjco3-ntintel-3.0.1". After unzipping the jco package, I want to run the sapJco3.jar which is in the sapJco3 folder. I encounter an Error:

not loaded, caused by java.lang.UnsatisfiedLinkError: D:\Downloads\sapjco3-ntintel-3.0.1\sapjco3.dll: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem

According to intro.html in javadoc. I am sure I haven't these issue.

I also download the sapJco2.1.8 package. I can run the sapJco2.1.8 successfully without any error.

When I copy this sapJco3 package to my colleague's computer, he can also run the sapJco3 without any error.

My computer is Dell LATITUDE D630 and my OS is Windows XP SP2

Please tell me the answer, thank you

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

This thread is ancient but it crops up in all google searches so I thought I would post a solution anyway.

I had exactly the same problem and tried all of the above without success.  The solution in my case was to make sure the JVM and sapjco3.dll were the for the same platform.  I had the 64 bit JCO3 running with 32 bit JVM.  I changed and installed the 32 bit JCO3 version.

Go to Start>Control Panel>Java to check JVM version.

If that doesn't work try these:

1. JCO 3 problems with Library - UnsatisfiedLinkError [SOLVED] - Toolbox for IT Groups

2. https://scn.sap.com/thread/11967

3. Error: sapJco3 load the Java library

Former Member
0 Kudos

I have reinstall my OS, now I can use sapJCo3 without error.

Thank you every body

Former Member
0 Kudos

There are some error message in my "Event Viewer", This is Windows error

there are three error messages in all, The first two messages are same:

Event Type: Error

Event Source: SideBySide

Event Category: None

Event ID: 32

Date: 1/15/2009

Time: 4:47:26 PM

User: N/A

Computer: BEXPCHN4035978A

Description:

Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

The last message is about my sapjco3:

Event Type: Error

Event Source: SideBySide

Event Category: None

Event ID: 59

Date: 1/15/2009

Time: 4:47:26 PM

User: N/A

Computer: BEXPCHN4035978A

Description:

Generate Activation Context failed for D:\Downloads\sapjco3-ntintel-3.0.1\sapjco3.dll. Reference error message: The operation completed successfully.

.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

So I think this is the issue of my Microsoft.VC80.CRT which is in the folder C:\WINNT\WinSxS.

I have copied 4 folders from my colleague's computer. These folders name:

+x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd

x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.49_x-ww_0de06ad4

x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb

x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700+

But it still doesn't work! How can I do for sapJco3???

former_member192434
Active Contributor
0 Kudos

check this forum link might help u

The following description assumes your are using Windows.

Create a new Java project "de.vogella.sap.jco" and create a folder lib in it.

From your JCo Download copy the following files into the folder lib.

sapjco3.jar

sapjco3.dll

Select sapjco3.jar -> Right mouse click -> Properties and add the jar to your Java Build Path.

If you are using Windows add the sapjco3.dll to your Windows System c:\winnt\system32 (or c:\C:\WINDOWS\system32) directory. For any other operating system please check the installation notes of SAP.

Former Member
0 Kudos
former_member192434
Active Contributor
0 Kudos

Hi

Check this forum link might hlep u

The most commons reason for getting that exception is that JVM can't find that dll.

There are two ways to load a dll:

System.loadLibrary("my.dll");

and

System.load("my.dll");

The first one expects to find the library in the java library path (see the 'java.library.path' System. property).

The second one is a path to the dll. So, you could do:

System.load("C:
somewhere
my.dll");

Also, I have noticed that I get that error when the dll is not working properly. Maybe it is depending on something else. Also, if the method signature is wrong you might get this. For example if your Java class is something like:

com.mycompany.project.MyClass

and it has a method called doStuff

when you generate the C header file, it should have a function that looks like:

Java_com_mycompany_project_MyClass_doStuff

if those don't match or the method signature changed and you didn't regenerate the header file, you'll get that exception too.

thanks