Closed Bug 483827 Opened 16 years ago Closed 3 years ago

JavaXPCOM UnsatisfiedLinkError XULRunner 1.9

Categories

(Core Graveyard :: Java to XPCOM Bridge, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: groodt, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729) Build Identifier: 1.9.0.5 When attempting to call Mozilla.initialize() in a Java application on Windows an UnsatisfiedLinkError is thrown. Reproducible: Always Here is the stack from MozSwing, but even with simple direct JavaXPCOM code, I get the same error. org.mozilla.browser.MozillaException: java.lang.UnsatisfiedLinkError: C:\xulrunner-1.9.0.5\xulrunner-sdk\bin\javaxpcomglue.dll (JVMPORT015E Unable to resolve DLL references - a prerequisite DLL may be missing) at org.mozilla.browser.MozillaExecutor.mozInit(MozillaExecutor.java:220) at org.mozilla.browser.MozillaInitialization.initialize(MozillaInitialization.java:143) at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:132) at org.mozilla.browser.MozillaWindow.<init>(MozillaWindow.java:101) at test.Main.main(Main.java:21) Caused by: java.lang.UnsatisfiedLinkError: C:\xulrunner-1.9.0.5\xulrunner-sdk\bin\javaxpcomglue.dll (JVMPORT015E Unable to resolve DLL references - a prerequisite DLL may be missing) at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:953) at java.lang.System.load(System.java:439) at org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(JavaXPCOMMethods.java:57) at org.mozilla.xpcom.internal.MozillaImpl.initialize(MozillaImpl.java:48) at org.mozilla.xpcom.Mozilla.initialize(Mozilla.java:668) at org.mozilla.browser.MozillaInitialization$2.run(MozillaInitialization.java:155) at org.mozilla.browser.MozillaExecutor$1.run(MozillaExecutor.java:191)
I was facing the same problem. It looks like this is related to the way Windows Vista+ loads up the dlls dynamically and some of the dlls needed conflicting with ones in System folders. See discussion here - http://geckofx.org/viewtopic.php?id=74 I was able to work around it by copying all xulrunner into project base folder and it worked. Still struggling with some other problems, but the unsatisfied link error seems to be gone.
Assignee: jhpedemonte → nobody
Product: Core → Core Graveyard

JavaXPCOM was removed in bug 648593.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.