JNI java.lang.UnsatisfiedLinkError with found DLL
- From: "Jörgen Persson" <jrpe99@xxxxxxxxxxx>
- Date: 11 Apr 2006 07:16:56 -0700
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
.
- Follow-Ups:
- Re: JNI java.lang.UnsatisfiedLinkError with found DLL
- From: Roedy Green
- Re: JNI java.lang.UnsatisfiedLinkError with found DLL
- From: Roedy Green
- Re: JNI java.lang.UnsatisfiedLinkError with found DLL
- From: Chris Uppal
- Re: JNI java.lang.UnsatisfiedLinkError with found DLL
- Prev by Date: Re: give me ur hand
- Next by Date: Java connecting to a file share
- Previous by thread: show modal dialog box
- Next by thread: Re: JNI java.lang.UnsatisfiedLinkError with found DLL
- Index(es):
Relevant Pages
|