Greetings,
I am running across an error where I cannot get a webspec instance
started because it cannot load the jniwrap.dll despite the fact that
the jniwrap-native.jar is in both the build path and class path of the
project. I even loaded the jniwrap.dll manually as demonstrated below
(ignore the AutoIt part of the message, just a little code reuse) and
it still says it cannot find it. I am using Eclipse Indigo on a Mac
VM running Windows 7 but with 32 bit Eclipse and 32 bit JVM. The same
thing happened on a pure windows machine as well. Any help would be
appreciated.
Thank you.
5326 [main] INFO main.myautoit.AutoIt3 - Loaded DLL: C:\Users\cknee
\AppData\Local\Temp\jniwrap.dll
!ENTRY org.eclipse.ui 4 0 2011-09-12 17:05:57.794
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ExceptionInInitializerError
at
org.watij.webspec.dsl.WebSpec.ie(WebSpec.java:271)
at
com.intuit.remote.WebLoginSelectionAdapter.widgetSelected(WebLoginSelectionAdapter.java:
61)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
123)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
344)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: com.jniwrapper.LibraryNotFoundException: Cannot find
JNIWrapper native library (jniwrap.dll)