?
=?iso-8859-1?q?J=F6rgen_Persson?=
Hi
I have made a C++ DLL, which I load like this:
static {
System.loadLibrary("LicenseWrapper");
}
I have added the location of the DLL to the windows PATH.
On windows XP this works fine and I get expected results.
On windows 2003 I get :
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\license\LicenseWrapper.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:1843)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1729)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
This error is not because it cannot find the DLL, which I have verified
by renaming it, there is something else.
The DLL is created in a Win32 Project using Microsoft Visual Studio
2005.
Are there windows version considurations when creating a DLL for JNI?
Best regards,
Jörgen
I have made a C++ DLL, which I load like this:
static {
System.loadLibrary("LicenseWrapper");
}
I have added the location of the DLL to the windows PATH.
On windows XP this works fine and I get expected results.
On windows 2003 I get :
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\license\LicenseWrapper.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:1843)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1729)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
This error is not because it cannot find the DLL, which I have verified
by renaming it, there is something else.
The DLL is created in a Win32 Project using Microsoft Visual Studio
2005.
Are there windows version considurations when creating a DLL for JNI?
Best regards,
Jörgen