Skip to main content

java.lang.UnsatisfiedLinkError when loading lib on WM5

2 replies [Last post]
pdelrieu
Offline
Joined: 2006-07-11
Points: 0

Dear,
I've developped a dll for Windows Mobile 5 ARM. It works with the J9 JVM but when I try to test it with Phone me adv CDC Personal Profil I have a UnsatisfiedLinkError.

I try to recompile it with the jni.h provided with PhoneMe src and I have the same problem.

Any body has an idea ?

regards
Philippe Delrieu

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pdelrieu
Offline
Joined: 2006-07-11
Points: 0

thanks men i found the solution to my problem. I was doing my lib loading during my code execution but you have to do this at the begining of the program.
Thanks for your help , Bye ...

Davy Preuveneers

On Friday 11 July 2008, phonemeadvanced@mobileandembedded.org wrote:
> Dear,
> I've developped a dll for Windows Mobile 5 ARM. It works with the J9 JVM
> but when I try to test it with Phone me adv CDC Personal Profil I have a
> UnsatisfiedLinkError.
>
> I try to recompile it with the jni.h provided with PhoneMe src and I have
> the same problem.
>
> Any body has an idea ?
>
> regards
> Philippe Delrieu
> [Message sent by forum member 'pdelrieu' (pdelrieu)]
>
> http://forums.java.net/jive/thread.jspa?messageID=285968
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Are you sure the VM can find your library? I presume you load the dll with a
piece of java code like this:

static {
try {
System.loadLibrary(LIB);
System.out.println("library loaded.");
}
catch (UnsatisfiedLinkError e) {
System.out.println("library not loaded: " + e);
}
}

Where did you put your dll file? Normally you should but it in the bin folder
where cvmi.dll is located. If you still get this exception, can you be a bit
more specific about the error message?

Regards,
Davy

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net