UnsatisfiedLinkError when compiling DLL on one PC and using on other

I have made a DLL to use within java, and it works fine when I use it on the machine that it was compiled on. However, when I take the DLL to a second machine, I get the following error when trying to use it in the SAME project, which is also a copy of the one in my PC. :-

java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\wscSystemStats.dll: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482)

at java.lang.Runtime.load0(Runtime.java:737)

at java.lang.System.load(System.java:811)

at

....

...

I am not really a C++ guy, and have not used JNI extensively. What could be the problem?

[920 byte] By [AUTOMATONa] at [2007-11-26 22:47:10]
# 1

> I have made a DLL to use within java, and it works

> fine when I use it on the machine that it was

> compiled on. However, when I take the DLL to a second

> machine, I get the following error when trying to use

> it in the SAME project, which is also a copy of the

> one in my PC. :-

>

> java.lang.UnsatisfiedLinkError:

> C:\WINDOWS\system32\wscSystemStats.dll: This

> application has failed to start because the

> application configuration is incorrect. Reinstalling

> the application may fix this problem

Some native Windows application that is being called from within the JNI code is failing. It's not your code, it's the other machine that has a problem.

Niceguy1a at 2007-7-10 12:05:57 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Check the versions of the standard window dlls.Jim
jjones3566a at 2007-7-10 12:05:57 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Thank you Jim, your advice solved my problem. It was ideed a versioning problem. I had compiled my DLL using .NET, but was using it on a machine that did not have .NET framework installed. So I compiled in in VC++ 6 and it was working fine after that.
AUTOMATONa at 2007-7-10 12:05:57 > top of Java-index,Java HotSpot Virtual Machine,Specifications...