The Source for Java Technology Collaboration

Home » java.net Forums » JDK » Java SE

Thread: Major issue with XP??

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jun 4, 2007 8:00 AM by: cowwoc
tdanecito

Posts: 379
Major issue with XP??
Posted: Jun 4, 2007 3:10 AM
  Click to reply to this thread Reply

Hi All,

I ran into a very interesting and frustrating issue with java and XP. For me I always get a unstatisfied link exception when calling loading a dll through System.LoadLibrary() where the dll references a delayed load dll such as the infamous mpr.dll where an export is missing.
I have heard if you use the windows api call of loadlibraryEx() this should not be an issue but I suspect the System.LoadLibrary() does not do this thus fails although it should do this.

The happens with all versions of 1.6 jre.

Any ideas? Seems like a pretty big bug to me. I have not found a way to get around this issue.

Regards,
-Tony

cowwoc

Posts: 1,055
Re: Major issue with XP??
Posted: Jun 4, 2007 8:00 AM   in response to: tdanecito
  Click to reply to this thread Reply

Have you tried to System.LoadLibrary() against mpr.dll before your other library? I suspect this will make your problem go away.

Gili




 XML java.net RSS